net.jxta.endpoint
Interface MessageTransport
- All Known Subinterfaces:
- MessageReceiver, MessageSender
- public interface MessageTransport
A MessageTransport is responsible for sending and or receiving JXTA
messages from an external network. A MessageTransport may use whatever
protocol it wishes in transporting messages. Messages passed to
MessageTransports are required to pass the messages cleanly (unaltered).
- Since:
- JXTA 1.0
- See Also:
EndpointService,
EndpointAddress,
MessageSender,
MessageReceiver
|
Method Summary |
boolean |
equals(java.lang.Object target)
Two MessageTransport instances are considered equal if and only if :
they support the same protocol
they have the same message endpoint addr(s) in the same order
they have the same propagate endpoint addr(s) in the same order
|
java.lang.String |
getProtocolName()
Returns a String containing the name of the protocol used by this
MessageTransport. |
equals
public boolean equals(java.lang.Object target)
- Two MessageTransport instances are considered equal if and only if :
- they support the same protocol
- they have the same message endpoint addr(s) in the same order
- they have the same propagate endpoint addr(s) in the same order
- Overrides:
equals in class java.lang.Object
- Parameters:
target - the MessageTransport to compare against.- Returns:
- true if the messsage transports are equal otherwise false.
getProtocolName
public java.lang.String getProtocolName()
- Returns a String containing the name of the protocol used by this
MessageTransport. The value will match the "protocol" portion of all
EndpointAddress.
- Returns:
- a String containing the name of the protocol used by this
EndpointProtocol