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 java.lang.Object


Method Summary
static void addInterface(EndpointReference axis2EPR, QName portType, java.lang.String addressingNamespace)
           
static void addLocation(EndpointReference axis2EPR, java.lang.String targetNamespace, java.lang.String wsdlDocumentLocation, java.lang.String addressingNamespace)
           
static void addMetadata(EndpointReference axis2EPR, org.w3c.dom.Element... metadata)
           
static void addReferenceParameters(EndpointReference axis2EPR, org.w3c.dom.Element... referenceParameters)
           
static void addService(EndpointReference axis2EPR, QName service, QName port, java.lang.String addressingNamespace)
           
static EndpointReference convertFromAxis2(EndpointReference axis2EPR, java.lang.String addressingNamespace)
          Convert from a EndpointReference to a subclass of EndpointReference.
static EndpointReference convertFromSource(javax.xml.transform.Source eprInfoset)
          Convert from a Source to a subclass of EndpointReference.
static java.lang.String convertToAxis2(EndpointReference axis2EPR, EndpointReference jaxwsEPR)
          Convert from a EndpointReference to a an instance of EndpointReference.
static EndpointReference createAxis2EndpointReference(java.lang.String address)
           
static EndpointReference createAxis2EndpointReference(java.lang.String address, QName serviceName, QName portName, java.lang.String wsdlDocumentLocation, java.lang.String addressingNamespace)
           
static
<T extends EndpointReference>
java.lang.String
getAddressingNamespace(java.lang.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,
                                                 java.lang.String addressingNamespace)
                                          throws java.lang.Exception
Convert from a EndpointReference to a subclass of EndpointReference.

Parameters:
axis2EPR -
addressingNamespace -
Returns:
Throws:
java.lang.Exception

convertFromSource

public static EndpointReference convertFromSource(javax.xml.transform.Source eprInfoset)
                                           throws java.lang.Exception
Convert from a Source to a subclass of EndpointReference.

Parameters:
eprInfoset -
Returns:
Throws:
java.lang.Exception

convertToAxis2

public static java.lang.String convertToAxis2(EndpointReference axis2EPR,
                                              EndpointReference jaxwsEPR)
                                       throws java.lang.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:
java.lang.Exception

getAddressingNamespace

public static <T extends EndpointReference> java.lang.String getAddressingNamespace(java.lang.Class<T> clazz)
Type Parameters:
T -
Parameters:
clazz -
Returns:

createAxis2EndpointReference

public static EndpointReference createAxis2EndpointReference(java.lang.String address,
                                                             QName serviceName,
                                                             QName portName,
                                                             java.lang.String wsdlDocumentLocation,
                                                             java.lang.String addressingNamespace)
Parameters:
address -
serviceName -
portName -
wsdlDocumentLocation -
addressingNamespace -
Returns:

createAxis2EndpointReference

public static EndpointReference createAxis2EndpointReference(java.lang.String address)
Parameters:
address -
Returns:

addReferenceParameters

public static void addReferenceParameters(EndpointReference axis2EPR,
                                          org.w3c.dom.Element... referenceParameters)
                                   throws java.lang.Exception
Parameters:
axis2EPR -
referenceParameters -
Throws:
java.lang.Exception

addMetadata

public static void addMetadata(EndpointReference axis2EPR,
                               org.w3c.dom.Element... metadata)
                        throws java.lang.Exception
Parameters:
axis2EPR -
metadata -
Throws:
java.lang.Exception

addInterface

public static void addInterface(EndpointReference axis2EPR,
                                QName portType,
                                java.lang.String addressingNamespace)
                         throws java.lang.Exception
Parameters:
axis2EPR -
portType -
addressingNamespace -
Throws:
java.lang.Exception

addService

public static void addService(EndpointReference axis2EPR,
                              QName service,
                              QName port,
                              java.lang.String addressingNamespace)
                       throws java.lang.Exception
Parameters:
axis2EPR -
service -
port -
addressingNamespace -
Throws:
java.lang.Exception

addLocation

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


Copyright © 2007 Apache Web Services Project. All Rights Reserved.