|
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(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 | |
---|---|
EndpointAddress |
clone()
Deprecated. EndpointAddress objects are immutable and never need to be cloned. |
boolean |
equals(Object target)
|
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()
|
String |
toString()
|
URI |
toURI()
Return a URI which represents the endpoint address. |
static EndpointAddress |
unmodifiableEndpointAddress(EndpointAddress address)
Deprecated. All EndpointAddresses are now unmodifiable so this method is no longer needed. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EndpointAddress(String address)
address
- the string representation of the address.public EndpointAddress(URI address)
address
- the URI representation of the address.public EndpointAddress(EndpointAddress base, String service, String serviceParam)
base
- The EndpointAddress on which the new EndpointAddress will be basedservice
- The service name for the endpoint address or
null
if there is no service name.serviceParam
- The service parameter for the endpoint address or
null
if there is no parameter.public EndpointAddress(String protocol, String address, String service, String serviceParam)
protocol
- The addressing scheme to be used for the endpoint address.address
- The destination for the endpoint address.service
- The service name for the endpoint address or
null
if there is no service name.serviceParam
- The service parameter for the endpoint address or
null
if there is no parameter.public EndpointAddress(ID id, String service, String serviceParam)
id
- the ID which will be the destination of the endpoint address.service
- The service name for the endpoint address or
null
if there is no service name.serviceParam
- The service parameter for the endpoint address or
null
if there is no parameter.Method Detail |
---|
@Deprecated public static EndpointAddress unmodifiableEndpointAddress(EndpointAddress address)
address
- the address to be cloned.
@Deprecated public EndpointAddress 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 String getProtocolName()
public String getProtocolAddress()
public String getServiceName()
public String getServiceParameter()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |