fipaos.mts.service
Class ParserService
java.lang.Object
|
+--fipaos.mts.service.ParserService
- All Implemented Interfaces:
- PostParserService, PreParserService, Service
- public class ParserService
- extends java.lang.Object
- implements PreParserService, PostParserService
This Service attempt to parser/deparse the various parts of the message
into the desired encoding (as specified in the Envelope and ACL parts of the message)
Fields inherited from interface fipaos.mts.service.Service |
ACL_LANGUAGE_UNKNOWN, CONTENT_LANGUAGE_UNKNOWN, ERROR_STRING, ERROR_UNKNOWN, FIPAOS_DEBUG, FIPAOS_MSG_ID_SLOT, MALFORMED_ENVELOPE, MSG_DELIVERY_FAILURE_REASON, NONE, PROTOCOL_UNKNOWN, TARGET_UNKNOWN |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserService
public ParserService()
shutdown
public void shutdown()
- Shutdown this service, and propogate to next in stack
- Specified by:
shutdown
in interface Service
outgoing
public void outgoing(Envelope p1,
byte[] p2)
- Outgoing messages are passed to
this
via this method
- Specified by:
outgoing
in interface PostParserService
- Parameters:
p1
- p2
-
incoming
public void incoming(Envelope p1,
byte[] p2)
- Incoming messages are passed to
this
via this method
- Specified by:
incoming
in interface PostParserService
- Parameters:
msg
- Incoming message
initialise
public void initialise(PostParserService p1,
PostParserService p2)
- Invoked when the undelying implementation should initialise itself. Allows
references to other PostParserService's before and after it in the stack
to be passed
- Specified by:
initialise
in interface PostParserService
- Parameters:
previous
- Previous PostParserService instance (Incoming messages should be passed to this)next
- Next PostParserService instance (Outgoing messages should be passed to this)
outgoing
public void outgoing(Message p1)
- Outgoing messages are passed to
this
via this method
- Specified by:
outgoing
in interface PreParserService
- Parameters:
msg
- Outgoing message
incoming
public void incoming(Message p1)
- Incoming messages are passed to
this
via this method
- Specified by:
incoming
in interface PreParserService
- Parameters:
msg
- Incoming message
initialise
public void initialise(PreParserService p1,
PreParserService p2)
- Invoked when the undelying implementation should initialise itself. Allows
references to other PreParserService's before and after it in the stack
to be passed
- Specified by:
initialise
in interface PreParserService
- Parameters:
previous
- Previous PreParserService instance (Incoming messages should be passed to this)next
- Next PreParserService instance (Outgoing messages should be passed to this)