|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.addressing.EndpointReferenceHelper
public class EndpointReferenceHelper
The methods in this class are used to process EndpointReference
objects
according to the rules of the 2005/08 (Final) and 2004/08 (submission) WS-Addressing
specifications.
Constructor Summary | |
---|---|
EndpointReferenceHelper()
|
Method Summary | |
---|---|
static java.lang.String |
fromOM(EndpointReference epr,
org.apache.axiom.om.OMElement eprOMElement)
Populates an endpoint reference based on the OMElement . |
static void |
fromOM(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 EndpointReference |
fromOM(org.apache.axiom.om.OMElement eprOMElement)
Populates an endpoint reference based on the OMElement that is
passed in. |
static EndpointReference |
fromOM(java.lang.String eprString)
Deprecated. use fromString(String) instead. |
static EndpointReference |
fromString(java.lang.String eprString)
Populates an endpoint reference based on the String that is
passed in. |
static InterfaceName |
getInterfaceNameMetadata(EndpointReference epr,
java.lang.String addressingNamespace)
Retrieves the WS-Addressing EPR PortType, or InterfaceName, element from an EPR, as appropriate. |
static ServiceName |
getServiceNameMetadata(EndpointReference epr,
java.lang.String addressingNamespace)
Retrieves the WS-Addressing EPR ServiceName element from an EPR. |
static WSDLLocation |
getWSDLLocationMetadata(EndpointReference epr,
java.lang.String addressingNamespace)
Retrieves the wsdli:wsdlLocation attribute from an EPR. |
static void |
setInterfaceNameMetadata(org.apache.axiom.om.OMFactory factory,
EndpointReference epr,
java.lang.String addressingNamespace,
InterfaceName interfaceName)
Adds an instance of InterfaceName as metadata to the specified EPR. |
static void |
setServiceNameMetadata(org.apache.axiom.om.OMFactory factory,
EndpointReference epr,
java.lang.String addressingNamespace,
ServiceName serviceName)
Adds an instance of ServiceName as metadata to the specified EPR. |
static void |
setWSDLLocationMetadata(org.apache.axiom.om.OMFactory factory,
EndpointReference epr,
java.lang.String addressingNamespace,
WSDLLocation wsdlLocation)
Adds an instance of WSDLLocation as metadata to the specified EPR. |
static org.apache.axiom.om.OMElement |
toOM(org.apache.axiom.om.OMFactory factory,
EndpointReference epr,
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 |
Constructor Detail |
---|
public EndpointReferenceHelper()
Method Detail |
---|
public static void fromOM(EndpointReference epr, org.apache.axiom.om.OMElement eprOMElement, java.lang.String addressingNamespace) throws AxisFault
OMElement
and
WS-Addressing namespace that is passed in.
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.
AxisFault
- if unable to locate an address element, or if the specified namespace
is different to the actual namespace.fromOM(OMElement)
public static java.lang.String fromOM(EndpointReference epr, org.apache.axiom.om.OMElement eprOMElement) throws AxisFault
OMElement
. Returns the
WS-Addressing namespace of the endpoint reference.
epr
- an endpoint reference instance to hold the info. If the endpoint
reference is null then just the WS-Addressing namespace is returned.eprOMElement
- an element of endpoint reference type
AxisFault
- if unable to locate an address element.public static EndpointReference fromOM(java.lang.String eprString) throws AxisFault
fromString(String)
instead.
String
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
String
that are not recognised are saved as extensibility elements.
eprString
- string from the element of endpoint reference type
AxisFault
- if unable to locate an address elementpublic static EndpointReference fromString(java.lang.String eprString) throws AxisFault
String
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
String
that are not recognised are saved as extensibility elements.
eprString
- string from the element of endpoint reference type
AxisFault
- if unable to locate an address elementpublic static EndpointReference fromOM(org.apache.axiom.om.OMElement eprOMElement) throws AxisFault
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.
eprOMElement
- an element of endpoint reference type
AxisFault
- if unable to locate an address elementpublic static org.apache.axiom.om.OMElement toOM(org.apache.axiom.om.OMFactory factory, EndpointReference epr, QName qname, java.lang.String addressingNamespace) throws AxisFault
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.
factory
- epr
- qname
- addressingNamespace
-
AxisFault
public static ServiceName getServiceNameMetadata(EndpointReference epr, java.lang.String addressingNamespace) throws AxisFault
epr
- the EPR to retrieve the element fromaddressingNamespace
- the WS-Addressing namespace associated with
the EPR.
ServiceName
. The return value is
never null
.
AxisFault
public static InterfaceName getInterfaceNameMetadata(EndpointReference epr, java.lang.String addressingNamespace) throws AxisFault
epr
- the EPR to retrieve the element fromaddressingNamespace
- the WS-Addressing namespace associated with
the EPR.
InterfaceName
. The return value is
never null
.
AxisFault
public static WSDLLocation getWSDLLocationMetadata(EndpointReference epr, java.lang.String addressingNamespace) throws AxisFault
epr
- the EPR to retrieve the attribute fromaddressingNamespace
- the WS-Addressing namespace associated with
the EPR.
WSDLLocation
. The return value is
never null
.
AxisFault
public static void setServiceNameMetadata(org.apache.axiom.om.OMFactory factory, EndpointReference epr, java.lang.String addressingNamespace, ServiceName serviceName) throws AxisFault
ServiceName
as metadata to the specified EPR.
The metadata is mapped to a WS-Addressing EPR ServiceName element.
factory
- an OMFactory
epr
- the EPR to retrieve the attribute fromaddressingNamespace
- the WS-Addressing namespace associated with
the EPR.serviceName
- an instance of ServiceName
that contains the
metadata
AxisFault
public static void setInterfaceNameMetadata(org.apache.axiom.om.OMFactory factory, EndpointReference epr, java.lang.String addressingNamespace, InterfaceName interfaceName) throws AxisFault
InterfaceName
as metadata to the specified EPR.
The metadata is mapped to a WS-Addressing EPR PortType or InterfaceName element.
factory
- an OMFactory
epr
- the EPR to retrieve the attribute fromaddressingNamespace
- the WS-Addressing namespace associated with
the EPR.interfaceName
- an instance of InterfaceName
that contains the
metadata
AxisFault
public static void setWSDLLocationMetadata(org.apache.axiom.om.OMFactory factory, EndpointReference epr, java.lang.String addressingNamespace, WSDLLocation wsdlLocation) throws AxisFault
WSDLLocation
as metadata to the specified EPR.
The metadata is mapped to a wsdli:wsdlLocation attribute.
factory
- an OMFactory
epr
- the EPR to retrieve the attribute fromaddressingNamespace
- the WS-Addressing namespace associated with
the EPR.wsdlLocation
- an instance of WSDLLocation
that contains the
metadata
AxisFault
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |