
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 Constructor Description SubscriptionDeliveringRestHookSubscriber()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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)
org.hl7.fhir.instance.model.api.IBaseResource
getResource(org.hl7.fhir.instance.model.api.IIdType payloadId)
void
handleMessage(ResourceDeliveryMessage theMessage)
protected void
sendNotification(ResourceDeliveryMessage theMsg)
Sends a POST notification without a payload-
Methods inherited from class ca.uhn.fhir.jpa.subscription.match.deliver.BaseSubscriptionDeliverySubscriber
getInterceptorBroadcaster, handleMessage, setFhirContextForUnitTest, setInterceptorBroadcasterForUnitTest, setSubscriptionRegistryForUnitTest
-
-
-
-
Constructor Detail
-
SubscriptionDeliveringRestHookSubscriber
public SubscriptionDeliveringRestHookSubscriber()
Constructor
-
-
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)
-
getResource
public org.hl7.fhir.instance.model.api.IBaseResource getResource(org.hl7.fhir.instance.model.api.IIdType payloadId) 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:
handleMessage
in classBaseSubscriptionDeliverySubscriber
- Throws:
org.springframework.messaging.MessagingException
-
sendNotification
protected void sendNotification(ResourceDeliveryMessage theMsg)
Sends a POST notification without a payload
-
-