public class ApplicationWrapper extends Object implements ReceivingApplication<Message>
Application
to convert it to a new
style ReceivingApplication
Constructor and Description |
---|
ApplicationWrapper(Application theApplication)
Constructor
|
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 ApplicationWrapper(Application theApplication)
theApplication
- The application to wrappublic Message processMessage(Message theMessage, Map<String,Object> theMetadata) throws ReceivingApplicationException, HL7Exception
processMessage
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 messagepublic boolean canProcess(Message theMessage)
canProcess
in interface ReceivingApplication<Message>
theMessage
- an inbound HL7 messageCopyright © 2001–2017 University Health Network. All rights reserved.