Package org.apache.axis2.addressing
Class EndpointReference
java.lang.Object
org.apache.axis2.addressing.EndpointReference
- All Implemented Interfaces:
Externalizable,Serializable,SafeSerializable
Class EndpointReference
This class models the WS-A EndpointReferenceType. But this can be used without any WS-A handlers as well
Since the models for this in Submission and Final versions are different, lets make this to comply with
WS-A Final version. So any information found with WS-A submission will be "pumped" in to this model.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNo-Arg Constructor Required for Externalizable objectsEndpointReference(String address) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAnonymousEquivalentURI(String anonymousEquivalentURI) Adds a parameter to the list of anonymous equivalent URIs.voidaddAttribute(String localName, org.apache.axiom.om.OMNamespace ns, String value) voidaddAttribute(org.apache.axiom.om.OMAttribute omAttribute) voidaddExtensibleElement(org.apache.axiom.om.OMElement extensibleElement) voidaddMetaData(org.apache.axiom.om.OMNode metaData) voidaddReferenceParameter(QName qname, String value) voidaddReferenceParameter(org.apache.axiom.om.OMElement omElement) ArrayList<org.apache.axiom.om.OMAttribute>This will return a Map of reference parameters with QName as the key and an OMElement as the valueArrayList<org.apache.axiom.om.OMAttribute>ArrayList<org.apache.axiom.om.OMElement>Get the ID associated with this object instance.ArrayList<org.apache.axiom.om.OMNode>ArrayList<org.apache.axiom.om.OMAttribute>getName()Deprecated.booleanThis method is used to identify when response messages should be sent using the back channel of a two-way transport.booleanhasNoneAddressbooleanCompares key parts of the state from the current instance of this class with the specified instance to see if they are equivalent.booleanThis method identifies whether the address is a WS-Addressing spec defined anonymous URI.voidreadExternal(ObjectInput inObject) Read the EPR to the specified InputStream.voidsetAddress(String address) voidsetAddressAttributes(ArrayList<org.apache.axiom.om.OMAttribute> al) voidsetExtensibleElements(ArrayList<org.apache.axiom.om.OMElement> extensibleElements) {any}voidsetMetadataAttributes(ArrayList<org.apache.axiom.om.OMAttribute> al) voidDeprecated.voidsetReferenceParameters(Map<QName, org.apache.axiom.om.OMElement> referenceParameters) Set a Map with QName as the key and an OMElement as the valuetoString()voidWrite the EPR to the specified OutputStream.
-
Constructor Details
-
EndpointReference
public EndpointReference()No-Arg Constructor Required for Externalizable objects -
EndpointReference
- Parameters:
address-
-
-
Method Details
-
addAnonymousEquivalentURI
Adds a parameter to the list of anonymous equivalent URIs.- Parameters:
anonymousEquivalentURI- any URI that has an address that begins with this value will be considered to be anonymous
-
addReferenceParameter
public void addReferenceParameter(org.apache.axiom.om.OMElement omElement) - Parameters:
omElement-
-
addReferenceParameter
- Parameters:
qname-value- - the text of the OMElement. Remember that this is a convenient method for the user, which has limited capability. If you want more power use @See EndpointReference#addReferenceParameter(OMElement)
-
getAllReferenceParameters
This will return a Map of reference parameters with QName as the key and an OMElement as the value- Returns:
- - map of the reference parameters, where the key is the QName of the reference parameter and the value is an OMElement
-
getAddress
-
setAddress
- Parameters:
address- - xs:anyURI
-
getAddressAttributes
-
setAddressAttributes
-
getMetadataAttributes
-
setMetadataAttributes
-
isWSAddressingAnonymous
public boolean isWSAddressingAnonymous()This method identifies whether the address is a WS-Addressing spec defined anonymous URI.- Returns:
- true if the address is a WS-Addressing spec defined anonymous URI.
- See Also:
-
hasAnonymousAddress
public boolean hasAnonymousAddress()This method is used to identify when response messages should be sent using the back channel of a two-way transport.- Returns:
- true if the address is a WS-Addressing spec defined anonymous URI, or starts with a string that is specified to be equivalent to an anonymous URI.
- See Also:
-
hasNoneAddress
public boolean hasNoneAddress()hasNoneAddress- Returns:
- true if the address is the 'None URI' from the final addressing spec.
-
addAttribute
- Parameters:
localName-ns-value-
-
getAttributes
-
addAttribute
public void addAttribute(org.apache.axiom.om.OMAttribute omAttribute) - Parameters:
omAttribute-
-
getExtensibleElements
-
setExtensibleElements
{any}- Parameters:
extensibleElements-
-
addExtensibleElement
public void addExtensibleElement(org.apache.axiom.om.OMElement extensibleElement) -
getMetaData
-
addMetaData
public void addMetaData(org.apache.axiom.om.OMNode metaData) -
getName
Deprecated. -
setName
Deprecated.- Parameters:
name-
-
setReferenceParameters
Set a Map with QName as the key and an OMElement as the value- Parameters:
referenceParameters-
-
toString
-
isEquivalent
Compares key parts of the state from the current instance of this class with the specified instance to see if they are equivalent. This differs from the java.lang.Object.equals() method in that the equals() method generally looks at both the object identity (location in memory) and the object state (data).- Parameters:
epr- The object to compare with- Returns:
- TRUE if this object is equivalent with the specified object that is, key fields match FALSE, otherwise
-
writeExternal
Write the EPR to the specified OutputStream. Because of potential OMElements/Attributes, we need to actually serialize the OM structures (at least in some cases.)- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
Read the EPR to the specified InputStream.- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
getLogCorrelationIDString
Get the ID associated with this object instance.- Returns:
- A string that can be output to a log file as an identifier for this object instance. It is suitable for matching related log entries.
-