|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.epfl.lsr.apex.APEXEndpointAddress
The APEXEndpointAddress
specifies a valid endpoint address
including options for the corresponding address.
Constructor Summary | |
APEXEndpointAddress(String stringAddress)
A new ' APEXEndpointAddress ' parsed from a String . |
|
APEXEndpointAddress(String stringAddress,
APEXOption option)
A new ' APEXEndpointAddress ' parsed from a String
containing one 'APEXOption '. |
|
APEXEndpointAddress(String stringAddress,
HashSet options)
A new ' APEXEndpointAddress ' parsed from a String
containing a set of 'APEXOption s'. |
Method Summary | |
void |
addOption(APEXOption option)
Adds an option to this endpoint address |
Object |
clone()
|
boolean |
equals(Object o)
|
String |
getApplication()
Returns the application (subaddress) of the endpoint address |
String |
getDomain()
Returns the domain of the endpoint address |
String |
getEndpointAddress()
Returns to full endpoint address as a String |
static APEXEndpointAddress |
getEndpointAddress(String sampleAddress)
Static method to get an ' APEXEndpointAddress ' from a
sample String. |
String |
getGeneralEndpointAddress()
Returns to general endpoint address (without subaddress) as a String . |
String |
getLocal()
Returns the local part of the endpoint address |
String |
getRealDomain()
Returns the domain of the endpoint address |
String |
getXMLOriginator()
Returns an XML originator element according RFC3380.
|
String |
getXMLOriginator(String indent)
Returns an XML originator element according RFC3380 using
a given indent, e.g. new String(" ") for two spaces indent.
|
String |
getXMLRecipient()
Returns an XML recipient element according RFC3380.
|
String |
getXMLRecipient(String indent)
Returns an XML recipient element according RFC3380 using
a given indent, e.g. new String(" ") for two spaces indent.
|
int |
hashCode()
|
void |
setApplication(String application)
If an endpoint formed by an endpoint name and a subaddress should be created, either the direct way aea = new APEXEndpointAddress("fred/appl=wb@example.com"); or aea = new APEXEndpointAddress("fred@example.com"); aea.setApplication("appl=wb"); can be used, e.g. if later the application should be set. |
String |
toString()
|
static String |
translateToRealAddress(String address)
Translates a domain address to a real Internet addressed, either a domain name to be resolved or a domain literal (e.g. [10.1.1.1]) to an IP address. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public APEXEndpointAddress(String stringAddress) throws APEXParsingException
APEXEndpointAddress
' parsed from a String
.
stringAddress
- Endpoint address as a String
APEXParsingException
- thrown if the endpoint address is not validpublic APEXEndpointAddress(String stringAddress, HashSet options) throws APEXParsingException
APEXEndpointAddress
' parsed from a String
containing a set of 'APEXOption
s'.
stringAddress
- Endpoint address as a String
options
- A set of options which are applicable for this address
APEXParsingException
- thrown if the endpoint address is not validpublic APEXEndpointAddress(String stringAddress, APEXOption option) throws APEXParsingException
APEXEndpointAddress
' parsed from a String
containing one 'APEXOption
'.
stringAddress
- Endpoint address as a String
option
- An option applicable for this address
APEXParsingException
- thrown if the endpoint address is not validMethod Detail |
public void setApplication(String application)
If an endpoint formed by an endpoint name and a subaddress should be created, either the direct way
aea = new APEXEndpointAddress("fred/appl=wb@example.com");
or
aea = new APEXEndpointAddress("fred@example.com"); aea.setApplication("appl=wb");
can be used, e.g. if later the application should be set.
application
- Application to be set for this endpoint addresspublic void addOption(APEXOption option)
option
- The option to be addedpublic String getEndpointAddress()
String
public String getGeneralEndpointAddress()
String
.
public String getLocal()
public String getDomain()
public String getRealDomain()
public static String translateToRealAddress(String address)
address
- The addresse to be translated
public String getApplication()
public static APEXEndpointAddress getEndpointAddress(String sampleAddress) throws APEXParsingException
APEXEndpointAddress
' from a
sample String.
sampleAddress
- A sample endpoint address
APEXEndpointAddress
'
APEXParsingException
- thrown if the sample address is not validpublic String getXMLRecipient()
Returns an XML recipient
element according RFC3380.
if any options are present, they take as well part of the XML element
recipient
elementpublic String getXMLOriginator()
Returns an XML originator
element according RFC3380.
if any options are present, they take as well part of the XML element
originator
elementpublic String getXMLRecipient(String indent)
Returns an XML recipient
element according RFC3380 using
a given indent, e.g. new String(" ") for two spaces indent.
if any options are present, they take as well part of the XML element
indent
- an indent, e.g. new String(" ") for two spaces indent
recipient
elementpublic String getXMLOriginator(String indent)
Returns an XML originator
element according RFC3380 using
a given indent, e.g. new String(" ") for two spaces indent.
if any options are present, they take as well part of the XML element
indent
- an indent, e.g. new String(" ") for two spaces indent
originator
elementpublic Object clone() throws CloneNotSupportedException
CloneNotSupportedException
public boolean equals(Object o)
public int hashCode()
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |