fipaos.mts.service
Interface PostParserService

All Superinterfaces:
Service
All Known Subinterfaces:
ExternalMTP
All Known Implementing Classes:
ParserService, BufferService, CommMultiplexService, CollectorService

public interface PostParserService
extends Service

This interface should be implemented by classes which provide post-parsing (for outbound messages) / pre-parsing (for incoming messages) processing


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
 
Method Summary
 void incoming(Envelope env, byte[] msg)
          Incoming messages are passed to this via this method
 void initialise(PostParserService previous, PostParserService next)
          Invoked when the undelying implementation should initialise itself.
 void outgoing(Envelope env, byte[] msg)
          Outgoing messages are passed to this via this method
 
Methods inherited from interface fipaos.mts.service.Service
shutdown
 

Method Detail

initialise

public void initialise(PostParserService previous,
                       PostParserService next)
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)

outgoing

public void outgoing(Envelope env,
                     byte[] msg)
Outgoing messages are passed to this via this method
Parameters:
msg - Outgoing message

incoming

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