fipaos.mts.service
Class ParserService


public class ParserService
implements PostParserService, PreParserService

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)


Constructor Summary
ParserService()
           

Method Summary
 synchronized voidincoming(Envelope p1, byte[] p2)
          Incoming messages are passed to this via this method
 synchronized voidincoming(Message p1)
          Incoming messages are passed to this via this method
 voidinitialise(PostParserService p1, PostParserService p2)
          Invoked when the undelying implementation should initialise itself.
 voidinitialise(PreParserService p1, PreParserService p2)
          Invoked when the undelying implementation should initialise itself.
 synchronized voidoutgoing(Envelope p1, byte[] p2)
          Outgoing messages are passed to this via this method
 synchronized voidoutgoing(Message p1)
          Outgoing messages are passed to this via this method
 synchronized voidshutdown()
          Shutdown this service, and propogate to next in stack

Constructor Detail

ParserService

public ParserService()
Method Detail

incoming

public synchronized void incoming(Envelope p1, byte[] p2)
Incoming messages are passed to this via this method
Parameters:
msg - Incoming message

incoming

public synchronized void incoming(Message p1)
Incoming messages are passed to this via this method
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
Parameters:
previous - Previous PostParserService instance (Incoming messages should be passed to this)
next - Next PostParserService instance (Outgoing messages should be passed to this)

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
Parameters:
previous - Previous PreParserService instance (Incoming messages should be passed to this)
next - Next PreParserService instance (Outgoing messages should be passed to this)

outgoing

public synchronized void outgoing(Envelope p1, byte[] p2)
Outgoing messages are passed to this via this method
Parameters:
p1
p2

outgoing

public synchronized void outgoing(Message p1)
Outgoing messages are passed to this via this method
Parameters:
msg - Outgoing message

shutdown

public synchronized void shutdown()
Shutdown this service, and propogate to next in stack

Association Links

to Class fipaos.mts.service.PreParserService

Service "before" this in stack

to Class fipaos.mts.service.PostParserService

Service "after" this in stack