Class SubscriptionDeliveringRestHookSubscriber
java.lang.Object
ca.uhn.fhir.jpa.subscription.match.deliver.BaseSubscriptionDeliverySubscriber
ca.uhn.fhir.jpa.subscription.match.deliver.resthook.SubscriptionDeliveringRestHookSubscriber
- All Implemented Interfaces:
org.springframework.messaging.MessageHandler
@Scope("prototype")
public class SubscriptionDeliveringRestHookSubscriber
extends BaseSubscriptionDeliverySubscriber
-
Field Summary
Fields inherited from class ca.uhn.fhir.jpa.subscription.match.deliver.BaseSubscriptionDeliverySubscriber
myFhirContext, myResourceModifiedMessagePersistenceSvc, mySubscriptionRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
deliverPayload
(ResourceDeliveryMessage theMsg, CanonicalSubscription theSubscription, ca.uhn.fhir.rest.api.EncodingEnum thePayloadType, ca.uhn.fhir.rest.client.api.IGenericClient theClient) protected void
doDelivery
(ResourceDeliveryMessage theMsg, CanonicalSubscription theSubscription, ca.uhn.fhir.rest.api.EncodingEnum thePayloadType, ca.uhn.fhir.rest.client.api.IGenericClient theClient, org.hl7.fhir.instance.model.api.IBaseResource thePayloadResource) protected org.hl7.fhir.instance.model.api.IBaseResource
getAndMassagePayload
(ResourceDeliveryMessage theMsg, CanonicalSubscription theSubscription) Perform operations on the payload based on various subscription extension settings such as deliver latest version, delete and/or strip version id.org.hl7.fhir.instance.model.api.IBaseResource
getResource
(org.hl7.fhir.instance.model.api.IIdType thePayloadId, RequestPartitionId thePartitionId, boolean theDeletedOK) void
handleMessage
(ResourceDeliveryMessage theMessage) static List
<ca.uhn.fhir.rest.client.api.Header> parseHeadersFromSubscription
(CanonicalSubscription subscription) protected void
Sends a POST notification without a payloadMethods inherited from class ca.uhn.fhir.jpa.subscription.match.deliver.BaseSubscriptionDeliverySubscriber
createDeliveryBundleForPayloadSearchCriteria, getInterceptorBroadcaster, handleMessage, inflateResourceModifiedMessageFromDeliveryMessage, setDaoRegistryForUnitTest, setFhirContextForUnitTest, setInterceptorBroadcasterForUnitTest, setMatchUrlServiceForUnitTest, setResourceModifiedMessagePersistenceSvcForUnitTest, setSubscriptionRegistryForUnitTest
-
Constructor Details
-
SubscriptionDeliveringRestHookSubscriber
Constructor
-
-
Method Details
-
deliverPayload
protected void deliverPayload(ResourceDeliveryMessage theMsg, CanonicalSubscription theSubscription, ca.uhn.fhir.rest.api.EncodingEnum thePayloadType, ca.uhn.fhir.rest.client.api.IGenericClient theClient) -
doDelivery
protected void doDelivery(ResourceDeliveryMessage theMsg, CanonicalSubscription theSubscription, ca.uhn.fhir.rest.api.EncodingEnum thePayloadType, ca.uhn.fhir.rest.client.api.IGenericClient theClient, org.hl7.fhir.instance.model.api.IBaseResource thePayloadResource) -
getResource
public org.hl7.fhir.instance.model.api.IBaseResource getResource(org.hl7.fhir.instance.model.api.IIdType thePayloadId, RequestPartitionId thePartitionId, boolean theDeletedOK) throws ca.uhn.fhir.rest.server.exceptions.ResourceGoneException - Throws:
ca.uhn.fhir.rest.server.exceptions.ResourceGoneException
-
getAndMassagePayload
protected org.hl7.fhir.instance.model.api.IBaseResource getAndMassagePayload(ResourceDeliveryMessage theMsg, CanonicalSubscription theSubscription) Perform operations on the payload based on various subscription extension settings such as deliver latest version, delete and/or strip version id.- Parameters:
theMsg
-theSubscription
-- Returns:
-
handleMessage
public void handleMessage(ResourceDeliveryMessage theMessage) throws org.springframework.messaging.MessagingException - Specified by:
handleMessage
in classBaseSubscriptionDeliverySubscriber
- Throws:
org.springframework.messaging.MessagingException
-
sendNotification
Sends a POST notification without a payload -
parseHeadersFromSubscription
public static List<ca.uhn.fhir.rest.client.api.Header> parseHeadersFromSubscription(CanonicalSubscription subscription)
-