Class ResourceDeliveryMessage
java.lang.Object
ca.uhn.fhir.rest.server.messaging.BaseResourceMessage
ca.uhn.fhir.jpa.subscription.model.ResourceDeliveryMessage
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IModelJson,ca.uhn.fhir.rest.server.messaging.IResourceMessage
public class ResourceDeliveryMessage
extends ca.uhn.fhir.rest.server.messaging.BaseResourceMessage
implements ca.uhn.fhir.rest.server.messaging.IResourceMessage
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.uhn.fhir.rest.server.messaging.BaseResourceMessage
ca.uhn.fhir.rest.server.messaging.BaseResourceMessage.OperationTypeEnum -
Field Summary
Fields inherited from class ca.uhn.fhir.rest.server.messaging.BaseResourceMessage
myOperationType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.instance.model.api.IBaseResourcegetPayload(ca.uhn.fhir.context.FhirContext theCtx)org.hl7.fhir.instance.model.api.IIdTypegetPayloadId(ca.uhn.fhir.context.FhirContext theCtx)ca.uhn.fhir.interceptor.model.RequestPartitionIdgetSubscriptionId(ca.uhn.fhir.context.FhirContext theFhirContext)Helper method to fetch the subscription IDvoidsetPartitionId(ca.uhn.fhir.interceptor.model.RequestPartitionId thePartitionId)voidsetPayload(ca.uhn.fhir.context.FhirContext theCtx, org.hl7.fhir.instance.model.api.IBaseResource thePayload, ca.uhn.fhir.rest.api.EncodingEnum theEncoding)voidsetPayloadId(org.hl7.fhir.instance.model.api.IIdType thePayloadId)voidsetSubscription(CanonicalSubscription theSubscription)toString()Methods inherited from class ca.uhn.fhir.rest.server.messaging.BaseResourceMessage
copyAdditionalPropertiesFrom, getAttribute, getMediaType, getMessageKeyOrNull, getOperationType, getTransactionId, setAttribute, setMediaType, setMessageKey, setOperationType, setTransactionId
-
Constructor Details
-
ResourceDeliveryMessage
public ResourceDeliveryMessage()Constructor
-
-
Method Details
-
getPayload
public org.hl7.fhir.instance.model.api.IBaseResource getPayload(ca.uhn.fhir.context.FhirContext theCtx) -
getPayloadString
-
getPayloadId
public org.hl7.fhir.instance.model.api.IIdType getPayloadId(ca.uhn.fhir.context.FhirContext theCtx) -
getSubscription
-
setSubscription
-
setPayload
public void setPayload(ca.uhn.fhir.context.FhirContext theCtx, org.hl7.fhir.instance.model.api.IBaseResource thePayload, ca.uhn.fhir.rest.api.EncodingEnum theEncoding) -
getPayloadId
- Specified by:
getPayloadIdin interfaceca.uhn.fhir.rest.server.messaging.IResourceMessage
-
setPayloadId
-
getRequestPartitionId
-
setPartitionId
-
toString
-
getSubscriptionId
Helper method to fetch the subscription ID
-