java.lang.Object
com.k_int.OpenRequest.api.AbstractMessageHandler
com.k_int.OpenRequest.actions.iso10161.HandleILL_PDU
- public class HandleILL_PDU
- extends com.k_int.OpenRequest.api.AbstractMessageHandler
|
Method Summary |
java.lang.Object |
handle(java.lang.String event,
java.lang.Object message,
com.k_int.OpenRequest.api.MessageHandlerContext ctx)
Handle an incoming ISO 10161 indication event. |
boolean |
isValidTransition(com.k_int.OpenRequest.db.ILLTransaction transaction,
Session session,
java.lang.String event_code)
|
void |
performTransition(com.k_int.OpenRequest.db.ILLTransaction transaction,
Session session,
java.lang.String event_code)
|
void |
sendLocationIndication(com.k_int.OpenRequest.api.MessageDispatcher dispatcher,
com.k_int.OpenRequest.isoill.ILLMessageEnvelope em,
com.k_int.OpenRequest.db.ILLTransaction t,
Session session,
java.lang.String event,
com.k_int.OpenRequest.db.Location.Location this_location)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cat
private static LoggingContext cat
msg_names
private static java.lang.String[][] msg_names
HandleILL_PDU
public HandleILL_PDU()
isValidTransition
public boolean isValidTransition(com.k_int.OpenRequest.db.ILLTransaction transaction,
Session session,
java.lang.String event_code)
performTransition
public void performTransition(com.k_int.OpenRequest.db.ILLTransaction transaction,
Session session,
java.lang.String event_code)
sendLocationIndication
public void sendLocationIndication(com.k_int.OpenRequest.api.MessageDispatcher dispatcher,
com.k_int.OpenRequest.isoill.ILLMessageEnvelope em,
com.k_int.OpenRequest.db.ILLTransaction t,
Session session,
java.lang.String event,
com.k_int.OpenRequest.db.Location.Location this_location)
handle
public java.lang.Object handle(java.lang.String event,
java.lang.Object message,
com.k_int.OpenRequest.api.MessageHandlerContext ctx)
throws com.k_int.OpenRequest.api.MessageHandlerException
- Handle an incoming ISO 10161 indication event.
Preconditions: message parameter can be cast into the class expected by this handler
(ILL_APDU_type).
Postconditions: If a valid transaction can be located for the request and the request
indicates a valid transition in that transaction then the request will
be saved in the database, the state of the transaction will be updated.
Otherwise a message will be generated and sent to the administrator.