org.apache.axis2.jaxws.addressing.util
Class EndpointReferenceUtils

java.lang.Object
  extended by org.apache.axis2.jaxws.addressing.util.EndpointReferenceUtils

public final class EndpointReferenceUtils
extends Object


Method Summary
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 a EndpointReference to a subclass of EndpointReference.
static EndpointReference convertFromSource(Source eprInfoset)
          Convert from a Source to a subclass of EndpointReference.
static String convertToAxis2(EndpointReference axis2EPR, EndpointReference jaxwsEPR)
          Convert from a EndpointReference to a an instance of EndpointReference.
static EndpointReference createAxis2EndpointReference(String address)
           
static EndpointReference createAxis2EndpointReference(String address, QName serviceName, QName portName, String wsdlDocumentLocation, String addressingNamespace)
           
static
<T extends EndpointReference>
String
getAddressingNamespace(Class<T> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertFromAxis2

public static EndpointReference convertFromAxis2(EndpointReference axis2EPR,
                                                 String addressingNamespace)
                                          throws Exception
Convert from a EndpointReference to a subclass of EndpointReference.

Parameters:
axis2EPR -
addressingNamespace -
Returns:
Throws:
Exception

convertFromSource

public static EndpointReference convertFromSource(Source eprInfoset)
                                           throws Exception
Convert from a Source to a subclass of EndpointReference.

Parameters:
eprInfoset -
Returns:
Throws:
Exception

convertToAxis2

public static String convertToAxis2(EndpointReference axis2EPR,
                                    EndpointReference jaxwsEPR)
                             throws Exception
Convert from a EndpointReference to a an instance of EndpointReference.

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

addLocation

public static void addLocation(EndpointReference axis2EPR,
                               String targetNamespace,
                               String wsdlDocumentLocation,
                               String addressingNamespace)
                        throws Exception
Parameters:
axis2EPR -
targetNamespace -
wsdlDocumentLocation -
addressingNamespace -
Throws:
Exception


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.