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
getPublicAddresses
public 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.