Project JXTA

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).

See Also:
EndpointService, EndpointAddress, MessageSender, MessageReceiver

Method Summary
 EndpointService getEndpointService()
          Returns the endpoint service with which this MessageTransport is registered.
 String getProtocolName()
          Returns a String containing the name of the protocol used by this MessageTransport.
 Object transportControl(Object operation, Object value)
          Deprecated. Under development, may change.
 

Method Detail

getProtocolName

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 MessageTransport.

getEndpointService

EndpointService getEndpointService()
Returns the endpoint service with which this MessageTransport is registered. If it is unregistered then null will be returned.

Returns:
the EndpointService with which this MessageTransport is registered.

transportControl

Object transportControl(Object operation,
                        Object value)
Deprecated. Under development, may change.

Pass a transport control object to a message transport.

Parameters:
operation - Object that specifies the type of control operation to be performed
value - Object that specifies a value object associated with the control operation
Returns:
returned object

JXTA J2SE