org.jboss.soa.esb.couriers.filter
Class InputOutputFilter

java.lang.Object
  extended by org.jboss.soa.esb.couriers.filter.InputOutputFilter

public class InputOutputFilter
extends java.lang.Object

An inputoutput filter is called when the message is being received/sent and after it has been received from the transport/before it is passed to the transport. Implementations may augment or modify the message en route. Implementations that are pure output or pure input can just override the desired operation.

Author:
marklittle

Constructor Summary
InputOutputFilter()
           
 
Method Summary
 Message onInput(Message msg)
          Called immediately after the message is received from the transport.
 Message onOutput(Message msg)
          Called as the message flows towards the transport.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputOutputFilter

public InputOutputFilter()
Method Detail

onOutput

public Message onOutput(Message msg)
                 throws CourierException
Called as the message flows towards the transport.

Parameters:
msg - the message
Returns:
an augmented message (or the original message)
Throws:
CourierException - thrown if an error occurs.

onInput

public Message onInput(Message msg)
                throws CourierException
Called immediately after the message is received from the transport.

Parameters:
msg - the message
Returns:
an augmented message (or the original message)
Throws:
CourierException - thrown if an error occurs.