Class SubscriptionDeliveringRestHookSubscriber
- java.lang.Object
-
- ca.uhn.fhir.jpa.subscription.module.subscriber.BaseSubscriptionDeliverySubscriber
-
- ca.uhn.fhir.jpa.subscription.module.subscriber.SubscriptionDeliveringRestHookSubscriber
-
- All Implemented Interfaces:
org.springframework.messaging.MessageHandler
@Component @Scope("prototype") public class SubscriptionDeliveringRestHookSubscriber extends BaseSubscriptionDeliverySubscriber
-
-
Field Summary
-
Fields inherited from class ca.uhn.fhir.jpa.subscription.module.subscriber.BaseSubscriptionDeliverySubscriber
myFhirContext, mySubscriptionRegistry
-
-
Constructor Summary
Constructors Constructor Description SubscriptionDeliveringRestHookSubscriber()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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)voidhandleMessage(ResourceDeliveryMessage theMessage)protected voidsendNotification(ResourceDeliveryMessage theMsg)Sends a POST notification without a payload-
Methods inherited from class ca.uhn.fhir.jpa.subscription.module.subscriber.BaseSubscriptionDeliverySubscriber
getInterceptorBroadcaster, handleMessage
-
-
-
-
Constructor Detail
-
SubscriptionDeliveringRestHookSubscriber
public SubscriptionDeliveringRestHookSubscriber()
-
-
Method Detail
-
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)
-
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
protected void sendNotification(ResourceDeliveryMessage theMsg)
Sends a POST notification without a payload
-
-