Class BaseSubscriptionDeliverySubscriber
java.lang.Object
ca.uhn.fhir.jpa.subscription.match.deliver.BaseSubscriptionDeliverySubscriber
- All Implemented Interfaces:
org.springframework.messaging.MessageHandler
- Direct Known Subclasses:
SubscriptionDeliveringEmailSubscriber
,SubscriptionDeliveringMessageSubscriber
,SubscriptionDeliveringRestHookSubscriber
public abstract class BaseSubscriptionDeliverySubscriber
extends Object
implements org.springframework.messaging.MessageHandler
-
Field Summary
Modifier and TypeFieldDescriptionprotected ca.uhn.fhir.context.FhirContext
protected IResourceModifiedMessagePersistenceSvc
protected SubscriptionRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.hl7.fhir.instance.model.api.IBaseBundle
createDeliveryBundleForPayloadSearchCriteria
(CanonicalSubscription theSubscription, org.hl7.fhir.instance.model.api.IBaseResource thePayloadResource) ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster
abstract void
handleMessage
(ResourceDeliveryMessage theMessage) void
handleMessage
(org.springframework.messaging.Message theMessage) protected Optional
<ResourceModifiedMessage> void
setDaoRegistryForUnitTest
(DaoRegistry theDaoRegistry) void
setFhirContextForUnitTest
(ca.uhn.fhir.context.FhirContext theCtx) void
setInterceptorBroadcasterForUnitTest
(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theInterceptorBroadcaster) void
setMatchUrlServiceForUnitTest
(MatchUrlService theMatchUrlService) void
setResourceModifiedMessagePersistenceSvcForUnitTest
(IResourceModifiedMessagePersistenceSvc theResourceModifiedMessagePersistenceSvc) void
setSubscriptionRegistryForUnitTest
(SubscriptionRegistry theSubscriptionRegistry)
-
Field Details
-
myFhirContext
-
mySubscriptionRegistry
-
myResourceModifiedMessagePersistenceSvc
-
-
Constructor Details
-
BaseSubscriptionDeliverySubscriber
public BaseSubscriptionDeliverySubscriber()
-
-
Method Details
-
handleMessage
public void handleMessage(org.springframework.messaging.Message theMessage) throws org.springframework.messaging.MessagingException - Specified by:
handleMessage
in interfaceorg.springframework.messaging.MessageHandler
- Throws:
org.springframework.messaging.MessagingException
-
handleMessage
- Throws:
Exception
-
createDeliveryBundleForPayloadSearchCriteria
protected org.hl7.fhir.instance.model.api.IBaseBundle createDeliveryBundleForPayloadSearchCriteria(CanonicalSubscription theSubscription, org.hl7.fhir.instance.model.api.IBaseResource thePayloadResource) -
inflateResourceModifiedMessageFromDeliveryMessage
-
setFhirContextForUnitTest
-
setInterceptorBroadcasterForUnitTest
public void setInterceptorBroadcasterForUnitTest(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theInterceptorBroadcaster) -
setSubscriptionRegistryForUnitTest
-
setDaoRegistryForUnitTest
-
setMatchUrlServiceForUnitTest
-
setResourceModifiedMessagePersistenceSvcForUnitTest
public void setResourceModifiedMessagePersistenceSvcForUnitTest(IResourceModifiedMessagePersistenceSvc theResourceModifiedMessagePersistenceSvc) -
getInterceptorBroadcaster
-