Celtix User APIs

org.objectweb.celtix.wsdl
Class EndpointReferenceUtils

java.lang.Object
  extended by org.objectweb.celtix.wsdl.EndpointReferenceUtils

public final class EndpointReferenceUtils
extends Object

Provides utility methods for obtaining endpoint references, wsdl definitions, etc.


Method Summary
static String getAddress(org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
          Get the address from the provided endpoint reference.
static org.objectweb.celtix.ws.addressing.EndpointReferenceType getEndpointReference(URL wsdlUrl, QName serviceName, String portName)
          Create an endpoint reference for the provided wsdl, service and portname.
static org.objectweb.celtix.ws.addressing.EndpointReferenceType getEndpointReference(WSDLManager manager, Object implementor)
          Gets an endpoint reference for the provided implementor object.
static javax.wsdl.Port getPort(WSDLManager manager, org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
          Gets the WSDL port for the provided endpoint reference.
static String getPortName(org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
          Gets the port name of the provided endpoint reference.
static QName getServiceName(org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
          Gets the service name of the provided endpoint reference.
static javax.jws.WebService getWebServiceAnnotation(Class<?> cls)
          Get the WebService for the provided class.
static javax.wsdl.Definition getWSDLDefinition(WSDLManager manager, org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
          Gets the WSDL definition for the provided endpoint reference.
static void setAddress(org.objectweb.celtix.ws.addressing.EndpointReferenceType ref, String address)
          Set the address of the provided endpoint reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServiceName

public static QName getServiceName(org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
Gets the service name of the provided endpoint reference.

Parameters:
ref - the endpoint reference.
Returns:
the service name.

getPortName

public static String getPortName(org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
Gets the port name of the provided endpoint reference.

Parameters:
ref - the endpoint reference.
Returns:
the port name.

getWSDLDefinition

public static javax.wsdl.Definition getWSDLDefinition(WSDLManager manager,
                                                      org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
                                               throws javax.wsdl.WSDLException
Gets the WSDL definition for the provided endpoint reference.

Parameters:
manager - - the WSDL manager
ref - - the endpoint reference
Returns:
Definition the wsdl definition
Throws:
javax.wsdl.WSDLException

getPort

public static javax.wsdl.Port getPort(WSDLManager manager,
                                      org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
                               throws javax.wsdl.WSDLException
Gets the WSDL port for the provided endpoint reference.

Parameters:
manager - - the WSDL manager
ref - - the endpoint reference
Returns:
Port the wsdl port
Throws:
javax.wsdl.WSDLException

getAddress

public static String getAddress(org.objectweb.celtix.ws.addressing.EndpointReferenceType ref)
Get the address from the provided endpoint reference.

Parameters:
ref - - the endpoint reference
Returns:
String the address of the endpoint

setAddress

public static void setAddress(org.objectweb.celtix.ws.addressing.EndpointReferenceType ref,
                              String address)
Set the address of the provided endpoint reference.

Parameters:
ref - - the endpoint reference
address - - the address

getEndpointReference

public static org.objectweb.celtix.ws.addressing.EndpointReferenceType getEndpointReference(URL wsdlUrl,
                                                                                            QName serviceName,
                                                                                            String portName)
Create an endpoint reference for the provided wsdl, service and portname.

Parameters:
wsdlUrl - - url of the wsdl that describes the service.
serviceName - - the QName of the service.
portName - - the name of the port.
Returns:
EndpointReferenceType - the endpoint reference

getWebServiceAnnotation

public static javax.jws.WebService getWebServiceAnnotation(Class<?> cls)
Get the WebService for the provided class. If the class itself does not have a WebService annotation, this method is called recursively on the class's interfaces and superclass.

Parameters:
cls - - the Class .
Returns:
WebService - the web service

getEndpointReference

public static org.objectweb.celtix.ws.addressing.EndpointReferenceType getEndpointReference(WSDLManager manager,
                                                                                            Object implementor)
Gets an endpoint reference for the provided implementor object.

Parameters:
manager - - the wsdl manager.
implementor - - the service implementor.
Returns:
EndpointReferenceType - the endpoint reference

Celtix User APIs