Add mutator for payload

This commit is contained in:
Tadgh 2021-01-25 12:20:38 -05:00
parent 4c9df3f7b4
commit 5c0b3ea905
2 changed files with 9 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class SubscriptionDeliveringEmailSubscriber extends BaseSubscriptionDeliv
@Override
public void handleMessage(ResourceDeliveryMessage theMessage) throws Exception {
CanonicalSubscription subscription = theMessage.getSubscription();
// The Subscription.endpoint is treated as the email "to"
String endpointUrl = subscription.getEndpointUrl();
List<String> destinationAddresses = new ArrayList<>();

View File

@ -37,4 +37,12 @@ public class ResourceOperationMessage extends BaseResourceModifiedMessage {
public ResourceOperationMessage(FhirContext theFhirContext, IBaseResource theNewResource, OperationTypeEnum theOperationType, RequestDetails theRequest) {
super(theFhirContext, theNewResource, theOperationType, theRequest);
}
/**
* If you are using a non-fhir-resource payload, you may set the payload directly here instead of using the constructor.
* @param thePayload the payload of the message.
*/
public void setPayload(String thePayload) {
this.myPayload = thePayload;
}
}