|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.impl.endpoint.Address
The Address class implements the JXTA Endpoint address. 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 defines as: tcp://192.168.1.10/JxtaPipe A particular pipe on would have the following address: tcp://192.168.1.10/JxtaPipe/000...128 bit UUID of the pipe
Constructor Summary | |
Address()
Constructor: builds an empty Address. |
|
Address(java.lang.String address)
Constructor: builds an Address from a string |
Method Summary | |
java.lang.Object |
clone()
Returns a clone of this object. |
boolean |
equals(java.lang.Object target)
Compares two Addresses for equality. |
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 name of 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 param)
Set the service parameter |
java.lang.String |
toString()
Return a String that contains the canonical representation of the Endpoint Address. |
Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Address()
public Address(java.lang.String address)
Method Detail |
public java.lang.Object clone()
public boolean equals(java.lang.Object target)
target
- the Address to be compared against.public java.lang.String toString()
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 param)
name
- String containing the service parameterpublic java.lang.String makeString() throws java.io.IOException
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |