Project JXTA

net.jxta.endpoint
Interface EndpointAddress

All Superinterfaces:
java.lang.Cloneable

public interface EndpointAddress
extends java.lang.Cloneable

The EndpointAddress class defines the JXTA Endpoint address. An Endpoint Address is an URI which is defined as follow:

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
Version:
$Revision: 1.16 $
See Also:
MessageTransport, EndpointService, PipeService

Method Summary
 java.lang.Object clone()
          Returns a complete copy of the provided EndpointAddress
 java.lang.String getProtocolAddress()
          Return a String that contains the name of the protocol address embedded in the EndpointAddress
 java.lang.String getProtocolName()
          Return a String that contains the name of the protocol embedded in the EndpointAddress
 java.lang.String getServiceName()
          Return a String that contains the name of the service name embedded in the EndpointAddress
 java.lang.String getServiceParameter()
          Return a String that contains the service parameter embedded in the EndpointAddress
 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

clone

public java.lang.Object clone()
Returns a complete copy of the provided EndpointAddress
Overrides:
clone in class java.lang.Object
Returns:
a copy of the object

getProtocolName

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

getProtocolAddress

public java.lang.String getProtocolAddress()
Return a String that contains the name of the protocol address embedded in the EndpointAddress
Returns:
String a String containing the protocol address
Since:
JXTA 1.0

getServiceName

public java.lang.String getServiceName()
Return a String that contains the name of the service name embedded in the EndpointAddress
Returns:
String a String containing the service name
Since:
JXTA 1.0

getServiceParameter

public java.lang.String getServiceParameter()
Return a String that contains the service parameter embedded in the EndpointAddress
Returns:
String a String containing the service parameter
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