org.nhindirect.stagent
Interface NHINDAgentEventListener


public interface NHINDAgentEventListener

Callback interface for custom processing of a message in the DefaultNHINDAgent. Implementations of this interface can be used to execute custom logic during the processing stages of a message.

Author:
Greg Meyer, Umesh Madan

Method Summary
 void error(Exception e)
          Called when an unexpected error occurs in the agent.
 void errorIncoming(IncomingMessage msg, Exception e)
          Called in an exception occurs during the message processing stages.
 void errorOutgoing(OutgoingMessage msg, Exception e)
          Called in an exception occurs during the message processing stages.
 void postProcessIncoming(IncomingMessage msg)
          Called after the message is decrypted and the signature is validated.
 void postProcessOutgoing(OutgoingMessage msg)
          Called after the message has been encypted and signed.
 void preProcessIncoming(IncomingMessage msg)
          Called after the message has been validated but before it is decrypted.
 void preProcessOutgoing(OutgoingMessage msg)
          Called after the message has been validated but before it is encypted and signed.
 

Method Detail

error

void error(Exception e)
Called when an unexpected error occurs in the agent.

Parameters:
e - The exception thrown by the agent.

preProcessIncoming

void preProcessIncoming(IncomingMessage msg)
                        throws NHINDException
Called after the message has been validated but before it is decrypted.

Parameters:
msg - The incoming message.
Throws:
NHINDException

postProcessIncoming

void postProcessIncoming(IncomingMessage msg)
                         throws NHINDException
Called after the message is decrypted and the signature is validated.

Parameters:
msg - The incoming message.
Throws:
NHINDException

errorIncoming

void errorIncoming(IncomingMessage msg,
                   Exception e)
Called in an exception occurs during the message processing stages.

Parameters:
msg - The incoming message.
The - exception thrown by the agent.

preProcessOutgoing

void preProcessOutgoing(OutgoingMessage msg)
                        throws NHINDException
Called after the message has been validated but before it is encypted and signed.

Parameters:
msg - The outgoing message.
Throws:
NHINDException

postProcessOutgoing

void postProcessOutgoing(OutgoingMessage msg)
                         throws NHINDException
Called after the message has been encypted and signed.

Parameters:
msg - The outgoing message.
Throws:
NHINDException

errorOutgoing

void errorOutgoing(OutgoingMessage msg,
                   Exception e)
Called in an exception occurs during the message processing stages.

Parameters:
msg - The incoming message.
The - exception thrown by the agent.


Copyright © 2010-2013 NHIN Direct. All Rights Reserved.