
Package ca.uhn.fhir.jpa.subscription.api
Interface ISubscriptionDeliveryValidator
- All Known Implementing Classes:
SubscriptionDeliveryValidator
public interface ISubscriptionDeliveryValidator
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(org.hl7.fhir.instance.model.api.IIdType theSubscriptionId, ResourceDeliveryMessage thePayload) Validate the subscription exists and is ACTIVE (or REQUESTED).
-
Method Details
-
validate
void validate(org.hl7.fhir.instance.model.api.IIdType theSubscriptionId, ResourceDeliveryMessage thePayload) Validate the subscription exists and is ACTIVE (or REQUESTED). If not, throw aSubscriptionInactiveException- Parameters:
theSubscriptionId- the id of the subscription delivering the payloadthePayload- the payload being delivered- Throws:
SubscriptionInactiveException- if the subscription is not active
-