ApplicationRouterpublic class MessageTypeRouter extends Object implements Application, ApplicationExceptionHandler
registerApplication(...).| Constructor and Description |
|---|
MessageTypeRouter()
Deprecated.
Creates a new instance of MessageTypeRouter
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcess(Message in)
Deprecated.
Returns true if at least one application has been registered to accept
this type of message.
|
String |
processException(String incomingMessage,
String outgoingMessage,
Exception e)
Deprecated.
Forwards the given exception to all Applications.
|
Message |
processMessage(Message in)
Deprecated.
Forwards the given message to any Applications that have been registered
to accept messages of that type and trigger event.
|
void |
registerApplication(String messageType,
String triggerEvent,
Application handler)
Deprecated.
Registers the given application to handle messages corresponding to the
given type and trigger event.
|
public MessageTypeRouter()
public boolean canProcess(Message in)
registerApplication(...).canProcess in interface Applicationpublic Message processMessage(Message in) throws ApplicationException
processMessage in interface ApplicationApplicationException - if no such Applications are registered, or if the underlying
Application throws this exception during processing.public String processException(String incomingMessage, String outgoingMessage, Exception e) throws HL7Exception
processException in interface ApplicationExceptionHandlerincomingMessage - the incoming message. This is the raw message which was
received from the external systemoutgoingMessage - the outgoing message. The response NAK message generated by
HAPI.e - the exceptionoutgoingMessage, or may be replaced with
another message.HL7Exceptionpublic void registerApplication(String messageType, String triggerEvent, Application handler)
Copyright © 2001-2013 University Health Network. All Rights Reserved.