net.jxta.endpoint
Interface MessageFilterListener
public interface MessageFilterListener
This interface is used by Message Filters.
- See Also:
EndpointService
,
EndpointAddress
,
Message
filterMessage
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.
- Parameters:
message
- Incoming messagesrcAddr
- Endpoint Address of the original source of the messagedstAddr
- 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.