|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.protocol.impl.AppWrapper
public class AppWrapper
Wraps a ca.uhn.hl7v2.app.Application as a ca.uhn.hl7v2.protocol.ReceivingApplication. ReceivingApplication replaces Application with HAPI 0.5.
Constructor Summary | |
---|---|
AppWrapper(Application theApplication)
|
Method Summary | |
---|---|
boolean |
canProcess(Message theMessage)
|
Message |
processMessage(Message theMessage,
java.util.Map theMetadata)
Uses the contents of the message for whatever purpose the application has for this message, and returns an appropriate response message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppWrapper(Application theApplication)
theApplication
- an Application to wrap as a ReceivingApplication.Method Detail |
---|
public Message processMessage(Message theMessage, java.util.Map theMetadata) throws ReceivingApplicationException, HL7Exception
ReceivingApplication
processMessage
in interface ReceivingApplication
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.
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
theMessage
- an inbound HL7 message
ReceivingApplication.canProcess(ca.uhn.hl7v2.model.Message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |