JXTA

net.jxta.endpoint
Interface MessageReceiver

All Superinterfaces:
MessageTransport

public interface MessageReceiver
extends MessageTransport

A MessageReceiver is a MessageTransport that is capable of receiving messages. A MessageReceiver receives messages from the network and hands them to the the EndpointService for processing. A Message Receiver is known by the EndpointAddresses it provides.

See Also:
EndpointAddress, MessageTransport, EndpointService

Method Summary
 Iterator<EndpointAddress> getPublicAddresses()
          Returns an Iterator of all of the EndpointAddresses by which this MessageReceiver is reachable.
 
Methods inherited from interface net.jxta.endpoint.MessageTransport
getEndpointService, getProtocolName, transportControl
 

Method Detail

getPublicAddresses

Iterator<EndpointAddress> getPublicAddresses()
Returns an Iterator of all of the EndpointAddresses by which this MessageReceiver is reachable. The list is in order of "preference" with the most "preferred" EndpointAddress being at the beginning of the list.

Returns:
an Iterator of EndpointAddresses.

JXSE