JXTA

net.jxta.impl.endpoint.cbjx
Class CbJxTransport.CbJxOutputFilter

java.lang.Object
  extended by net.jxta.impl.endpoint.cbjx.CbJxTransport.CbJxOutputFilter
All Implemented Interfaces:
MessageFilterListener
Enclosing class:
CbJxTransport

public class CbJxTransport.CbJxOutputFilter
extends Object
implements MessageFilterListener

this class filters all outgoing messages that are not sent with messengers. (that is propagate messages). It adds CbJxInformation into to messages.


Constructor Summary
CbJxTransport.CbJxOutputFilter()
          Default constructor
 
Method Summary
 Message filterMessage(Message message, EndpointAddress srcAddr, EndpointAddress dstAddr)
          This method is invoked by the EndpointService for each message for which this filter is registered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CbJxTransport.CbJxOutputFilter

public CbJxTransport.CbJxOutputFilter()
Default constructor

Method Detail

filterMessage

public Message filterMessage(Message message,
                             EndpointAddress srcAddr,
                             EndpointAddress dstAddr)
This method is invoked by the EndpointService for each message for which this filter is registered.

The src and destination addresses are the addresses as they were before any filters were run upon the message. If your filter is dependant upon the current value of thse addresses it should examine the message directly.

Specified by:
filterMessage in interface MessageFilterListener
Parameters:
message - Incoming message
srcAddr - Endpoint Address of the original source of the message
dstAddr - Endpoint Address of the original destination of the message
Returns:
Message The potentially modified or alternate message. If null is returned then the message has been discarded.

JXSE