|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationRouter
Routes messages to the appropriate application.
Nested Class Summary | |
---|---|
static interface |
ApplicationRouter.AppRoutingData
Encapsulates the message fields used for routing of messages from the HL7 protocol to the appropriate Application . |
Method Summary | |
---|---|
void |
bindApplication(ApplicationRouter.AppRoutingData theRoutingData,
ReceivingApplication theApplication)
Associates the given application with the given message parameters, so that messages with matching parameters will be sent there. |
void |
disableBinding(ApplicationRouter.AppRoutingData theRoutingData)
Temporarily deactivates the binding on the given field data, if present. |
void |
enableBinding(ApplicationRouter.AppRoutingData theRoutingData)
Undoes disableBinding(AppRoutingData theRoutingData) . |
Parser |
getParser()
|
boolean |
hasActiveBinding(ApplicationRouter.AppRoutingData theRoutingData)
|
Transportable |
processMessage(Transportable theMessage)
Attempts to route the given message to the associated Application
and obtain a response. |
Method Detail |
---|
Transportable processMessage(Transportable theMessage) throws HL7Exception
Application
and obtain a response.
theMessage
- the message to route
HL7Exception
boolean hasActiveBinding(ApplicationRouter.AppRoutingData theRoutingData)
theRoutingData
- message fields used in determining the appropriate destination
void bindApplication(ApplicationRouter.AppRoutingData theRoutingData, ReceivingApplication theApplication)
Associates the given application with the given message parameters, so that messages with matching parameters will be sent there. Only one application can be registered for a given set of parameters: repeated registration for a particular combination over-writes the previous one.
Because of wildcards, there may be multiple registrations that match a given message. In this case, the first registered wins.
theRoutingData
- message fields used in determining the appropriate destinationtheApplication
- the application to which messages with these parameters should be
sentvoid disableBinding(ApplicationRouter.AppRoutingData theRoutingData)
theRoutingData
- the fields that define a set of messages that are bound to
some Application
void enableBinding(ApplicationRouter.AppRoutingData theRoutingData)
disableBinding(AppRoutingData theRoutingData)
.
theRoutingData
- the fields that define a set of messages that are bound to
some Application
Parser getParser()
Parser
that is used to parse inbound messages
and encode outbound ones. It may be of interest to set certain parameters
of this parser.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |