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 voidaddExtensibleAttributes(org.apache.axis2.addressing.EndpointReference axis2EPR, Map<QName,String> attributes)static voidaddExtensibleElements(org.apache.axis2.addressing.EndpointReference axis2EPR, Element... elements)static voidaddInterface(org.apache.axis2.addressing.EndpointReference axis2EPR, QName portType, String addressingNamespace)static voidaddLocation(org.apache.axis2.addressing.EndpointReference axis2EPR, String targetNamespace, String wsdlDocumentLocation, String addressingNamespace)static voidaddMetadata(org.apache.axis2.addressing.EndpointReference axis2EPR, Element... metadata)static voidaddReferenceParameters(org.apache.axis2.addressing.EndpointReference axis2EPR, Element... referenceParameters)static voidaddService(org.apache.axis2.addressing.EndpointReference axis2EPR, QName service, QName port, String addressingNamespace)static EndpointReferenceconvertFromAxis2(org.apache.axis2.addressing.EndpointReference axis2EPR, String addressingNamespace)Convert from aEndpointReferenceto a subclass ofEndpointReference.static EndpointReferenceconvertFromSource(Source eprInfoset)Convert from aSourceto a subclass ofEndpointReference.static StringconvertToAxis2(org.apache.axis2.addressing.EndpointReference axis2EPR, EndpointReference jaxwsEPR)Convert from aEndpointReferenceto a an instance ofEndpointReference.static org.apache.axis2.addressing.EndpointReferencecreateAxis2EndpointReference(String address)static org.apache.axis2.addressing.EndpointReferencecreateAxis2EndpointReference(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(org.apache.axis2.addressing.EndpointReference axis2EPR, String addressingNamespace) throws Exception
Convert from aEndpointReferenceto a subclass ofEndpointReference.- Parameters:
axis2EPR-addressingNamespace-- Returns:
- Throws:
Exception
-
convertFromSource
public static EndpointReference convertFromSource(Source eprInfoset) throws Exception
Convert from aSourceto a subclass ofEndpointReference.- Parameters:
eprInfoset-- Returns:
- Throws:
Exception
-
convertToAxis2
public static String convertToAxis2(org.apache.axis2.addressing.EndpointReference axis2EPR, EndpointReference jaxwsEPR) throws Exception
Convert from aEndpointReferenceto 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 org.apache.axis2.addressing.EndpointReference createAxis2EndpointReference(String address, QName serviceName, QName portName, String wsdlDocumentLocation, String addressingNamespace)
- Parameters:
address-serviceName-portName-wsdlDocumentLocation-addressingNamespace-- Returns:
-
createAxis2EndpointReference
public static org.apache.axis2.addressing.EndpointReference createAxis2EndpointReference(String address)
- Parameters:
address-- Returns:
-
addReferenceParameters
public static void addReferenceParameters(org.apache.axis2.addressing.EndpointReference axis2EPR, Element... referenceParameters) throws Exception- Parameters:
axis2EPR-referenceParameters-- Throws:
Exception
-
addExtensibleElements
public static void addExtensibleElements(org.apache.axis2.addressing.EndpointReference axis2EPR, Element... elements) throws Exception- Parameters:
axis2EPR-elements-- Throws:
Exception
-
addExtensibleAttributes
public static void addExtensibleAttributes(org.apache.axis2.addressing.EndpointReference axis2EPR, Map<QName,String> attributes) throws Exception- Throws:
Exception
-
addMetadata
public static void addMetadata(org.apache.axis2.addressing.EndpointReference axis2EPR, Element... metadata) throws Exception- Parameters:
axis2EPR-metadata-- Throws:
Exception
-
addInterface
public static void addInterface(org.apache.axis2.addressing.EndpointReference axis2EPR, QName portType, String addressingNamespace) throws Exception- Parameters:
axis2EPR-portType-addressingNamespace-- Throws:
Exception
-
addService
public static void addService(org.apache.axis2.addressing.EndpointReference axis2EPR, QName service, QName port, String addressingNamespace) throws Exception- Parameters:
axis2EPR-service-port-addressingNamespace-- Throws:
Exception
-
addLocation
public static void addLocation(org.apache.axis2.addressing.EndpointReference axis2EPR, String targetNamespace, String wsdlDocumentLocation, String addressingNamespace) throws Exception- Parameters:
axis2EPR-targetNamespace-wsdlDocumentLocation-addressingNamespace-- Throws:
Exception
-
-