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.IHasPayloadMessageKey, 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

    Fields inherited from interface ca.uhn.fhir.model.api.IModelJson

    SENSITIVE_DATA_FILTER_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    org.hl7.fhir.instance.model.api.IBaseResource
    getPayload(ca.uhn.fhir.context.FhirContext theCtx)
     
     
    org.hl7.fhir.instance.model.api.IIdType
    getPayloadId(ca.uhn.fhir.context.FhirContext theCtx)
     
     
     
     
     
    getSubscriptionId(ca.uhn.fhir.context.FhirContext theFhirContext)
    Helper method to fetch the subscription ID
    void
     
    void
    setPayload(ca.uhn.fhir.context.FhirContext theCtx, org.hl7.fhir.instance.model.api.IBaseResource thePayload, ca.uhn.fhir.rest.api.EncodingEnum theEncoding)
     
    void
    setPayloadId(org.hl7.fhir.instance.model.api.IIdType thePayloadId)
     
    void
     
    void
     
     

    Methods inherited from class ca.uhn.fhir.rest.server.messaging.BaseResourceMessage

    copyAdditionalPropertiesFrom, equals, getAttribute, getAttributes, getMediaType, getOperationType, getTransactionId, hashCode, setAttribute, setMediaType, setOperationType, setPayloadMessageKey, setTransactionId

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface ca.uhn.fhir.rest.server.messaging.IResourceMessage

    setPayloadMessageKey
  • Constructor Details

  • 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

      public void setSubscription(CanonicalSubscription theSubscription)
    • 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)
    • setPayloadToNull

      public void setPayloadToNull()
    • getPayloadId

      public String getPayloadId()
      Specified by:
      getPayloadId in interface ca.uhn.fhir.rest.server.messaging.IResourceMessage
    • setPayloadId

      public void setPayloadId(org.hl7.fhir.instance.model.api.IIdType thePayloadId)
      Specified by:
      setPayloadId in interface ca.uhn.fhir.rest.server.messaging.IResourceMessage
    • getRequestPartitionId

    • setPartitionId

      public void setPartitionId(RequestPartitionId thePartitionId)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getSubscriptionId

      public String getSubscriptionId(ca.uhn.fhir.context.FhirContext theFhirContext)
      Helper method to fetch the subscription ID
    • getPayloadMessageKey

      @Nullable public String getPayloadMessageKey()
      Specified by:
      getPayloadMessageKey in interface ca.uhn.fhir.rest.server.messaging.IHasPayloadMessageKey
      Overrides:
      getPayloadMessageKey in class ca.uhn.fhir.rest.server.messaging.BaseResourceMessage