Class EndpointReferenceUtils
- java.lang.Object
-
- org.apache.axis2.jaxws.addressing.util.EndpointReferenceUtils
-
public final class EndpointReferenceUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addExtensibleAttributes(EndpointReference axis2EPR, Map<QName,String> attributes)
static void
addExtensibleElements(EndpointReference axis2EPR, Element... elements)
static void
addInterface(EndpointReference axis2EPR, QName portType, String addressingNamespace)
static void
addLocation(EndpointReference axis2EPR, String targetNamespace, String wsdlDocumentLocation, String addressingNamespace)
static void
addMetadata(EndpointReference axis2EPR, Element... metadata)
static void
addReferenceParameters(EndpointReference axis2EPR, Element... referenceParameters)
static void
addService(EndpointReference axis2EPR, QName service, QName port, String addressingNamespace)
static EndpointReference
convertFromAxis2(EndpointReference axis2EPR, String addressingNamespace)
Convert from aEndpointReference
to a subclass ofEndpointReference
.static EndpointReference
convertFromSource(Source eprInfoset)
Convert from aSource
to a subclass ofEndpointReference
.static String
convertToAxis2(EndpointReference axis2EPR, EndpointReference jaxwsEPR)
Convert from aEndpointReference
to a an instance ofEndpointReference
.static EndpointReference
createAxis2EndpointReference(String address)
static EndpointReference
createAxis2EndpointReference(String address, QName serviceName, QName portName, String wsdlDocumentLocation, String addressingNamespace)
static <T extends EndpointReference>
StringgetAddressingNamespace(Class<T> clazz)
-
-
-
Method Detail
-
convertFromAxis2
public static EndpointReference convertFromAxis2(EndpointReference axis2EPR, String addressingNamespace) throws Exception
Convert from aEndpointReference
to a subclass ofEndpointReference
.- Parameters:
axis2EPR
-addressingNamespace
-- Returns:
- Throws:
Exception
-
convertFromSource
public static EndpointReference convertFromSource(Source eprInfoset) throws Exception
Convert from aSource
to a subclass ofEndpointReference
.- Parameters:
eprInfoset
-- Returns:
- Throws:
Exception
-
convertToAxis2
public static String convertToAxis2(EndpointReference axis2EPR, EndpointReference jaxwsEPR) throws Exception
Convert from aEndpointReference
to a an instance ofEndpointReference
.- Parameters:
axis2EPR
-jaxwsEPR
-- Returns:
- the WS-Addressing namespace of the
javax.xml.ws.EndpointReference
. - Throws:
Exception
-
getAddressingNamespace
public static <T extends EndpointReference> String getAddressingNamespace(Class<T> clazz)
- Type Parameters:
T
-- Parameters:
clazz
-- Returns:
-
createAxis2EndpointReference
public static EndpointReference createAxis2EndpointReference(String address, QName serviceName, QName portName, String wsdlDocumentLocation, String addressingNamespace)
- Parameters:
address
-serviceName
-portName
-wsdlDocumentLocation
-addressingNamespace
-- Returns:
-
createAxis2EndpointReference
public static EndpointReference createAxis2EndpointReference(String address)
- Parameters:
address
-- Returns:
-
addReferenceParameters
public static void addReferenceParameters(EndpointReference axis2EPR, Element... referenceParameters) throws Exception
- Parameters:
axis2EPR
-referenceParameters
-- Throws:
Exception
-
addExtensibleElements
public static void addExtensibleElements(EndpointReference axis2EPR, Element... elements) throws Exception
- Parameters:
axis2EPR
-elements
-- Throws:
Exception
-
addExtensibleAttributes
public static void addExtensibleAttributes(EndpointReference axis2EPR, Map<QName,String> attributes) throws Exception
- Throws:
Exception
-
addMetadata
public static void addMetadata(EndpointReference axis2EPR, Element... metadata) throws Exception
- Parameters:
axis2EPR
-metadata
-- Throws:
Exception
-
addInterface
public static void addInterface(EndpointReference axis2EPR, QName portType, String addressingNamespace) throws Exception
- Parameters:
axis2EPR
-portType
-addressingNamespace
-- Throws:
Exception
-
addService
public static void addService(EndpointReference axis2EPR, QName service, QName port, String addressingNamespace) throws Exception
- Parameters:
axis2EPR
-service
-port
-addressingNamespace
-- Throws:
Exception
-
-