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
 
Constructor Summary
CXFEndpointProvider(QName serviceName, org.apache.cxf.ws.addressing.EndpointReferenceType endpointReference)
          Creates a CXFEndpointProvider instance.
CXFEndpointProvider(QName serviceName, String address, SLProperties properties)
          Creates a CXFEndpointProvider instance.
CXFEndpointProvider(QName serviceName, String bindingId, String transportId, org.apache.cxf.ws.addressing.EndpointReferenceType endpointReference)
          Creates a CXFEndpointProvider instance.
CXFEndpointProvider(org.apache.cxf.endpoint.Server server, String address, SLProperties properties)
          Creates a CXFEndpointProvider instance.
 
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
 

Constructor Detail

CXFEndpointProvider

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

Parameters:
serviceName -
endpointReference -

CXFEndpointProvider

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

Parameters:
serviceName -
bindingId -
transportId -
endpointReference -

CXFEndpointProvider

public CXFEndpointProvider(QName serviceName,
                           String address,
                           SLProperties properties)
Creates a CXFEndpointProvider instance.

Parameters:
serviceName -
address -
properties -

CXFEndpointProvider

public CXFEndpointProvider(org.apache.cxf.endpoint.Server server,
                           String address,
                           SLProperties properties)
Creates a CXFEndpointProvider instance.

Parameters:
server -
address -
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–2013 Talend Inc.. All rights reserved.