public class AppWrapper extends Object implements ReceivingApplication<Message>
| Constructor and Description |
|---|
AppWrapper(Application theApplication) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcess(Message theMessage) |
Message |
processMessage(Message theMessage,
Map<String,Object> theMetadata)
Uses the contents of the message for whatever purpose the application
has for this message, and returns an appropriate response message.
|
public AppWrapper(Application theApplication)
theApplication - an Application to wrap as a ReceivingApplication.public Message processMessage(Message theMessage, Map<String,Object> theMetadata) throws ReceivingApplicationException, HL7Exception
ReceivingApplicationprocessMessage in interface ReceivingApplication<Message>theMessage - an inbound HL7 messagetheMetadata - message metadata (which may include information about where the message comes
from, etc). This is the same metadata as in Transportable.getMetadata().ReceivingApplicationException - if there is a problem internal to the application (for example
a database problem)HL7Exception - if there is a problem with the messageReceivingApplication.processMessage(ca.uhn.hl7v2.model.Message, java.util.Map)public boolean canProcess(Message theMessage)
canProcess in interface ReceivingApplication<Message>theMessage - an inbound HL7 messageReceivingApplication.canProcess(ca.uhn.hl7v2.model.Message)Copyright © 2001–2017 University Health Network. All rights reserved.