Add mutator for payload
This commit is contained in:
parent
4c9df3f7b4
commit
5c0b3ea905
|
@ -55,7 +55,7 @@ public class SubscriptionDeliveringEmailSubscriber extends BaseSubscriptionDeliv
|
||||||
@Override
|
@Override
|
||||||
public void handleMessage(ResourceDeliveryMessage theMessage) throws Exception {
|
public void handleMessage(ResourceDeliveryMessage theMessage) throws Exception {
|
||||||
CanonicalSubscription subscription = theMessage.getSubscription();
|
CanonicalSubscription subscription = theMessage.getSubscription();
|
||||||
|
|
||||||
// The Subscription.endpoint is treated as the email "to"
|
// The Subscription.endpoint is treated as the email "to"
|
||||||
String endpointUrl = subscription.getEndpointUrl();
|
String endpointUrl = subscription.getEndpointUrl();
|
||||||
List<String> destinationAddresses = new ArrayList<>();
|
List<String> destinationAddresses = new ArrayList<>();
|
||||||
|
|
|
@ -37,4 +37,12 @@ public class ResourceOperationMessage extends BaseResourceModifiedMessage {
|
||||||
public ResourceOperationMessage(FhirContext theFhirContext, IBaseResource theNewResource, OperationTypeEnum theOperationType, RequestDetails theRequest) {
|
public ResourceOperationMessage(FhirContext theFhirContext, IBaseResource theNewResource, OperationTypeEnum theOperationType, RequestDetails theRequest) {
|
||||||
super(theFhirContext, theNewResource, theOperationType, 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue