org.talend.esb.servicelocator.cxf.internal
Class CXFEndpointProvider

java.lang.Object
  extended by org.talend.esb.servicelocator.cxf.internal.CXFEndpointProvider
All Implemented Interfaces:
Endpoint

public class CXFEndpointProvider
extends Object
implements Endpoint


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.talend.esb.servicelocator.client.Endpoint
Endpoint.PropertiesTransformer
 
Field Summary
static String CXF_HTTP_TRANSPORT_ID
           
static String JAXRS_BINDING_ID
           
static Logger LOG
           
static org.talend.esb.servicelocator.client.internal.endpoint.ObjectFactory SL_OBJECT_FACTORY
           
static String SOAP_HTTP_TRANSPORT_ID
           
static String SOAP11_BINDING_ID
           
static String SOAP12_BINDING_ID
           
static org.apache.cxf.ws.addressing.ObjectFactory WSA_OBJECT_FACTORY
           
 
Constructor Summary
CXFEndpointProvider(QName serviceName, org.apache.cxf.ws.addressing.EndpointReferenceType endpointReference)
           
CXFEndpointProvider(QName serviceName, String address, SLProperties properties)
           
CXFEndpointProvider(QName serviceName, String bindingId, String transportId, org.apache.cxf.ws.addressing.EndpointReferenceType endpointReference)
           
CXFEndpointProvider(org.apache.cxf.endpoint.Server server, String address, SLProperties properties)
           
 
Method Summary
 void addEndpointReference(Node parent)
          Add a WS-Addressing endpoint reference to the given XML tree.
 boolean equals(Object other)
           
 String getAddress()
          Return the address of the endpoint.
 BindingType getBinding()
           
 SLProperties getProperties()
           
 QName getServiceName()
          Return the name of the service the endpoint belongs to
 TransportType getTransport()
           
 int hashCode()
           
 String toString()
           
 void writeEndpointReferenceTo(Result result, Endpoint.PropertiesTransformer transformer)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

public static final Logger LOG

WSA_OBJECT_FACTORY

public static final org.apache.cxf.ws.addressing.ObjectFactory WSA_OBJECT_FACTORY

SL_OBJECT_FACTORY

public static final org.talend.esb.servicelocator.client.internal.endpoint.ObjectFactory SL_OBJECT_FACTORY

SOAP11_BINDING_ID

public static final String SOAP11_BINDING_ID
See Also:
Constant Field Values

SOAP12_BINDING_ID

public static final String SOAP12_BINDING_ID
See Also:
Constant Field Values

JAXRS_BINDING_ID

public static final String JAXRS_BINDING_ID
See Also:
Constant Field Values

CXF_HTTP_TRANSPORT_ID

public static final String CXF_HTTP_TRANSPORT_ID
See Also:
Constant Field Values

SOAP_HTTP_TRANSPORT_ID

public static final String SOAP_HTTP_TRANSPORT_ID
See Also:
Constant Field Values
Constructor Detail

CXFEndpointProvider

public CXFEndpointProvider(QName serviceName,
                           org.apache.cxf.ws.addressing.EndpointReferenceType endpointReference)

CXFEndpointProvider

public CXFEndpointProvider(QName serviceName,
                           String bindingId,
                           String transportId,
                           org.apache.cxf.ws.addressing.EndpointReferenceType endpointReference)

CXFEndpointProvider

public CXFEndpointProvider(QName serviceName,
                           String address,
                           SLProperties properties)

CXFEndpointProvider

public CXFEndpointProvider(org.apache.cxf.endpoint.Server server,
                           String address,
                           SLProperties properties)
Method Detail

getServiceName

public QName getServiceName()
Description copied from interface: Endpoint
Return the name of the service the endpoint belongs to

Specified by:
getServiceName in interface Endpoint
Returns:
name of the service, must not be null.

getAddress

public String getAddress()
Description copied from interface: Endpoint
Return the address of the endpoint.

Specified by:
getAddress in interface Endpoint
Returns:
url of the endpoint, must not be null.

getBinding

public BindingType getBinding()
Specified by:
getBinding in interface Endpoint

getTransport

public TransportType getTransport()
Specified by:
getTransport in interface Endpoint

getProperties

public SLProperties getProperties()
Specified by:
getProperties in interface Endpoint

writeEndpointReferenceTo

public void writeEndpointReferenceTo(Result result,
                                     Endpoint.PropertiesTransformer transformer)
                              throws ServiceLocatorException
Specified by:
writeEndpointReferenceTo in interface Endpoint
Throws:
ServiceLocatorException

addEndpointReference

public void addEndpointReference(Node parent)
                          throws ServiceLocatorException
Description copied from interface: Endpoint
Add a WS-Addressing endpoint reference to the given XML tree.

Specified by:
addEndpointReference in interface Endpoint
Parameters:
parent - the node where to add the endpoint reference, is not null and either an Element or a Document.
Throws:
ServiceLocatorException

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Talend Inc.. All Rights Reserved.