|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.endpoint.EndpointAddress
public class EndpointAddress
Describes a destination to which JXTA messages may be sent. This may be:
EndpointService
,
MessageTransport
,
Messenger
,
PipeService
Constructor Summary | |
---|---|
EndpointAddress()
Deprecated. EndpointAddress works better if it is immutable. |
|
EndpointAddress(byte[] bytes)
Deprecated. There isn't really ever a good reason to use this since it has to assume the character encoding. |
|
EndpointAddress(EndpointAddress base,
String service,
String serviceParam)
Constructor which builds an endpoint address from a base address and replacement service and params |
|
EndpointAddress(ID id,
String service,
String serviceParam)
Constructor which builds an address from a standard jxta id and a service and param. |
|
EndpointAddress(String address)
Builds an Address from a string |
|
EndpointAddress(String protocol,
String address,
String service,
String serviceParam)
Constructor which builds an address the four standard constituent parts. |
|
EndpointAddress(URI address)
Create an EndpointAddress whose value is initialized from the provided URI. |
Method Summary | |
---|---|
Object |
clone()
|
boolean |
equals(Object target)
|
byte[] |
getBytes()
Deprecated. There isn't really ever a good reason to use this since it has to assume the character encoding. |
String |
getProtocolAddress()
Return a String that contains the protocol address contained in the EndpointAddress |
String |
getProtocolName()
Return a String that contains the name of the protocol contained in the EndpointAddress |
String |
getServiceName()
Return a String that contains the service name contained in the EndpointAddress |
String |
getServiceParameter()
Return a String that contains the service parameter contained in the EndpointAddress |
int |
hashCode()
|
void |
setProtocolAddress(String address)
Deprecated. EndpointAddress works better if it is immutable. |
void |
setProtocolName(String name)
Deprecated. EndpointAddress works better if it is immutable. |
void |
setServiceName(String name)
Deprecated. EndpointAddress works better if it is immutable. |
void |
setServiceParameter(String param)
Deprecated. EndpointAddress works better if it is immutable. |
String |
toString()
|
URI |
toURI()
Return a URI which represents the endpoint address. |
static EndpointAddress |
unmodifiableEndpointAddress(EndpointAddress address)
Returns an unmodifiable clone of the provided EndpointAddress. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EndpointAddress()
public EndpointAddress(String address)
address
- the string representation of the address.public EndpointAddress(URI address)
address
- the URI representation of the address.public EndpointAddress(byte[] bytes)
bytes
- byte array containing a UTF-8 string of the endpoint address to be constructed.public EndpointAddress(EndpointAddress base, String service, String serviceParam)
base
- The EndpointAddress on which the new EndpointAddress will be basedservice
- provides an alternate service for the new EndpointAddress.serviceParam
- provides and alternate service parameter for the new EndpointAddresspublic EndpointAddress(String protocol, String address, String service, String serviceParam)
address
- Describes the destination entity of this address.protocol
- Describes the method of addressing used by the remainder of the
endpoint address.service
- String containing the name of the destination serviceserviceParam
- String containing the service parameterpublic EndpointAddress(ID id, String service, String serviceParam)
id
- the ID which will be the destination of the endpoint addressservice
- String containing the name of the destination serviceserviceParam
- String containing the service parameterMethod Detail |
---|
public static EndpointAddress unmodifiableEndpointAddress(EndpointAddress address)
address
- the address to be cloned.
public Object clone()
clone
in class Object
public boolean equals(Object target)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public URI toURI()
public byte[] getBytes()
public String getProtocolName()
public String getProtocolAddress()
public String getServiceName()
public String getServiceParameter()
public void setProtocolName(String name)
name
- String containing the name of the protocolpublic void setProtocolAddress(String address)
address
- String containing the peer address.public void setServiceName(String name)
name
- String containing the name of the destination servicepublic void setServiceParameter(String param)
param
- String containing the service parameter
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |