net.jxta.endpoint
Interface EndpointFilterListener
- public interface EndpointFilterListener
This interface is used in order to set up an EndpointService Filter listener.
- Since:
- JXTA 1.0
- See Also:
EndpointService,
EndpointAddress,
Message
processIncomingMessage
public Message processIncomingMessage(Message message,
EndpointAddress srcAddr,
EndpointAddress dstAddr)
- This method is invoked by the EndpointService for each incoming message
that contains a message element associated to this Endpoint Filter.
- Parameters:
message - Incoming messagesrcAddr - Endpoint Address of the source of the messagedstAddr - Endpoint Address of the destination of the message- Returns:
- Message The listener is expected to return the provided message if the message is to be further processed,
and null if the message is to be dropped.