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, mySubscriptionRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddeliverPayload(ResourceDeliveryMessage theMsg, CanonicalSubscription theSubscription, ca.uhn.fhir.rest.api.EncodingEnum thePayloadType, ca.uhn.fhir.rest.client.api.IGenericClient theClient)protected voiddoDelivery(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.IBaseResourcegetAndMassagePayload(ResourceDeliveryMessage theMsg, CanonicalSubscription theSubscription)org.hl7.fhir.instance.model.api.IBaseResourcegetResource(org.hl7.fhir.instance.model.api.IIdType payloadId, ca.uhn.fhir.interceptor.model.RequestPartitionId thePartitionId, boolean theDeletedOK)voidhandleMessage(ResourceDeliveryMessage theMessage)static List<ca.uhn.fhir.rest.client.api.Header>parseHeadersFromSubscription(CanonicalSubscription subscription)protected voidsendNotification(ResourceDeliveryMessage theMsg)Sends a POST notification without a payloadMethods inherited from class ca.uhn.fhir.jpa.subscription.match.deliver.BaseSubscriptionDeliverySubscriber
getInterceptorBroadcaster, handleMessage, setFhirContextForUnitTest, setInterceptorBroadcasterForUnitTest, 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 payloadId, ca.uhn.fhir.interceptor.model.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) -
handleMessage
public void handleMessage(ResourceDeliveryMessage theMessage) throws org.springframework.messaging.MessagingException- Specified by:
handleMessagein 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)
-