Project JXTA

net.jxta.endpoint
Interface EndpointAddress


public interface EndpointAddress

The EndpointAddress class defines the JXTA Endpoint address. Each peer can have as many EndpointAdresses as it needs A JXTA endpoint address is a URI that has the following form:

protocol://network address/service name/optional parameters

For instance, a JXTA Peer on TCP, will have its PipeService Service address defined as:

tcp://192.168.1.10/JxtaPipe

A particular pipe provided by the service would have the following address:

tcp://192.168.1.10/JxtaPipe/000...128 bit UUID of the pipe

Since:
JXTA 1.0
See Also:
Message, InputPipe, OutputPipe, Pipe

Method Summary
 java.lang.String getProtocolAddress()
          Return a String that contains the name of the protocol address contained in the EndpointAddress
 java.lang.String getProtocolName()
          Return a String that contains the name of the protocol contained in the EndpointAddress
 java.lang.String getServiceName()
          Return a String that contains the name of the service name contained in the EndpointAddress
 java.lang.String getServiceParameter()
          Return a String that contains the service parameter contained in the EndpointAddress
 java.lang.String makeString()
          Deprecated. Please use toString() instead.
 void setProtocolAddress(java.lang.String address)
          Set the protocol address.
 void setProtocolName(java.lang.String name)
          Set the protocol name.
 void setServiceName(java.lang.String name)
          Set the service name.
 void setServiceParameter(java.lang.String name)
          Set the service parameter
 

Method Detail

makeString

public java.lang.String makeString()
                            throws java.io.IOException
Deprecated. Please use toString() instead.

Return a String that contains the canonical representation of the Endpoint Address.
Returns:
String a String containing the EndpointAddress
Throws:
IOExcetion - if the EndpointAddress is malformed.
Since:
JXTA 1.0

getProtocolName

public java.lang.String getProtocolName()
                                 throws java.io.IOException
Return a String that contains the name of the protocol contained in the EndpointAddress
Returns:
a String containing the protocol name
Since:
JXTA 1.0

getProtocolAddress

public java.lang.String getProtocolAddress()
                                    throws java.io.IOException
Return a String that contains the name of the protocol address contained in the EndpointAddress
Returns:
String a String containing the protocol address
Throws:
IOExcetion - if the EndpointAddress is malformed.
Since:
JXTA 1.0

getServiceName

public java.lang.String getServiceName()
                                throws java.io.IOException
Return a String that contains the name of the service name contained in the EndpointAddress
Returns:
String a String containing the service name
Throws:
IOExcetion - if the EndpointAddress is malformed.
Since:
JXTA 1.0

getServiceParameter

public java.lang.String getServiceParameter()
                                     throws java.io.IOException
Return a String that contains the service parameter contained in the EndpointAddress
Returns:
String a String containing the service parameter
Throws:
IOExcetion - if the EndpointAddress is malformed, or if there is no parameter associated with the service
Since:
JXTA 1.0

setProtocolName

public void setProtocolName(java.lang.String name)
Set the protocol name.
Parameters:
name - String containing the name of the protocol
Since:
JXTA 1.0

setProtocolAddress

public void setProtocolAddress(java.lang.String address)
Set the protocol address.
Parameters:
address - String containing the peer address.
Since:
JXTA 1.0

setServiceName

public void setServiceName(java.lang.String name)
Set the service name.
Parameters:
name - String containing the name of the service
Since:
JXTA 1.0

setServiceParameter

public void setServiceParameter(java.lang.String name)
Set the service parameter
Parameters:
name - String containing the service parameter
Since:
JXTA 1.0

Project JXTA