| Modifier and Type | Field and Description |
|---|---|
protected java.util.Hashtable |
m_parameters
A map of the parameters, extracted from the URN.
|
protected java.lang.String |
m_transportIdentifier
The transport identifier as extracted from the URN.
|
| Constructor and Description |
|---|
Endpoint(java.lang.String a_theURN)
Tries to create a new instance of
Endpoint, by extracting the
transport identifier and parameters from the URN. |
| Modifier and Type | Method and Description |
|---|---|
AddressParameter[] |
getAllParameters()
Returns an array of all
AddressParameter objects associated with
this Endpoint. |
java.lang.String |
getParameter(java.lang.String a_name)
Returns the parameter with the given name.
|
java.lang.String |
getTransportIdentifier()
Returns the transport identifier of the URN.
|
static java.lang.String |
toURN(IAddress a_address)
Transforms a given
IAddress into its URN representation. |
protected java.lang.String m_transportIdentifier
protected java.util.Hashtable m_parameters
AddressParameter.public Endpoint(java.lang.String a_theURN)
throws MalformedURNException
Endpoint, by extracting the
transport identifier and parameters from the URN.a_theURN - The URN to create the Endpoint object from.MalformedURNException - If the URN is not in the expected format.public java.lang.String getTransportIdentifier()
public static java.lang.String toURN(IAddress a_address)
IAddress into its URN representation. The
transformation follows the following rules:
EndpointURN ::= "urn:endpoint:" Identifier ParameterGroup
Identifier == TransportIdentifier
ParameterGroup = Parameter | Parameter ParamterGroup
Parameter = ":" ParamterName "(" ParamterValue ")"
Identifier describes the transport identifier of the IAddress.
ParameterName and ParameterValue describe the name and value of a
parameter of the IAddress, all of which are inserted into the
resulting URN.a_address - The address to be transformed into a URN.public java.lang.String getParameter(java.lang.String a_name)
a_name - The name of the parameter.public AddressParameter[] getAllParameters()
AddressParameter objects associated with
this Endpoint.Copyright © 2023. All rights reserved.