|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
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 |
public java.lang.String makeString() throws java.io.IOException
public java.lang.String getProtocolName() throws java.io.IOException
public java.lang.String getProtocolAddress() throws java.io.IOException
public java.lang.String getServiceName() throws java.io.IOException
public java.lang.String getServiceParameter() throws java.io.IOException
public void setProtocolName(java.lang.String name)
name
- String containing the name of the protocolpublic void setProtocolAddress(java.lang.String address)
address
- String containing the peer address.public void setServiceName(java.lang.String name)
name
- String containing the name of the servicepublic void setServiceParameter(java.lang.String name)
name
- String containing the service parameter
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |