Project 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 messsages 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 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 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 "prefered" EndpointAddress being at the begining of the list.

Returns:
an Iterator of EndpointAddresses.

JXTA J2SE