org.apache.sandesha2.util
Class EndpointReferenceSerializer
java.lang.Object
org.apache.sandesha2.util.EndpointReferenceSerializer
- public class EndpointReferenceSerializer
- extends java.lang.Object
Method Summary |
static void |
fromOM(org.apache.axis2.addressing.EndpointReference epr,
org.apache.axiom.om.OMElement eprOMElement,
java.lang.String addressingNamespace)
Populates an endpoint reference based on the OMElement and
WS-Addressing namespace that is passed in. |
static org.apache.axis2.addressing.EndpointReference |
fromOM(org.apache.axiom.om.OMElement eprOMElement)
Populates an endpoint reference based on the OMElement that is
passed in. |
static org.apache.axiom.om.OMElement |
toOM(org.apache.axiom.om.OMFactory factory,
org.apache.axis2.addressing.EndpointReference epr,
javax.xml.namespace.QName qname,
java.lang.String addressingNamespace)
Creates an OMElement based on the properties of the endpoint
reference. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EndpointReferenceSerializer
public EndpointReferenceSerializer()
fromOM
public static void fromOM(org.apache.axis2.addressing.EndpointReference epr,
org.apache.axiom.om.OMElement eprOMElement,
java.lang.String addressingNamespace)
throws org.apache.axis2.AxisFault
- Populates an endpoint reference based on the
OMElement
and
WS-Addressing namespace that is passed in. If the string passed in is not
recognized as a valid WS-Addressing namespace then this method behaves as
if http://www.w3.org/2005/08/addressing has been passed in.
- Parameters:
epr
- an endpoint reference instance to hold the info.eprOMElement
- an element of endpoint reference typeaddressingNamespace
- the namespace of the WS-Addressing spec to comply with.
- Throws:
org.apache.axis2.AxisFault
- if unable to locate an address element- See Also:
fromOM(OMElement)
fromOM
public static org.apache.axis2.addressing.EndpointReference fromOM(org.apache.axiom.om.OMElement eprOMElement)
throws org.apache.axis2.AxisFault
- Populates an endpoint reference based on the
OMElement
that is
passed in. If the http://schemas.xmlsoap.org/ws/2004/08/addressing namespace
is in effect then any reference properties will be saved as reference parameters.
Regardless of the addressing namespace in effect, any elements present in the
OMElement
that are not recognised are saved as extensibility elements.
- Parameters:
eprOMElement
- an element of endpoint reference type
- Throws:
org.apache.axis2.AxisFault
- if unable to locate an address element
toOM
public static org.apache.axiom.om.OMElement toOM(org.apache.axiom.om.OMFactory factory,
org.apache.axis2.addressing.EndpointReference epr,
javax.xml.namespace.QName qname,
java.lang.String addressingNamespace)
throws org.apache.axis2.AxisFault
- Creates an
OMElement
based on the properties of the endpoint
reference. The output may differ based on the addressing namespace that is
in effect when this method is called. If the http://www.w3.org/2005/08/addressing
namespace is in effect, and a metadata property has been defined for the
endpoint reference, then there will be a metadata element to contain the
property in the output. If the http://schemas.xmlsoap.org/ws/2004/08/addressing
namespace is in effect, however, then no metadata element will be included
in the output, even if a metadata property element has been defined.
- Parameters:
factory
- epr
- qname
- addressingNamespace
-
- Returns:
-
- Throws:
org.apache.axis2.AxisFault
Copyright © 2005-2006 Apache Web Services. All Rights Reserved.