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

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

public class CXFEndpointProvider
extends Object
implements EndpointProvider


Field Summary
static String CXF_HTTP_TRANSPORT_ID
           
static String JAXRS_BINDING_ID
           
static String SOAP_HTTP_TRANSPORT_ID
           
static String SOAP11_BINDING_ID
           
static String SOAP12_BINDING_ID
           
 
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.
 String getAddress()
          Return the address of the endpoint.
 BindingType getBinding()
           
 long getLastTimeStarted()
           
 long getLastTimeStopped()
           
 QName getServiceName()
          Return the name of the service the endpoint belongs to
 TransportType getTransport()
           
 void setLastTimeStartedToCurrent()
           
 void setLastTimeStopped(long lastTimeStopped)
           
 void setLastTimeStoppedToCurrent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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: EndpointProvider
Return the name of the service the endpoint belongs to

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

getAddress

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

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

getBinding

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

getTransport

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

setLastTimeStartedToCurrent

public void setLastTimeStartedToCurrent()

getLastTimeStarted

public long getLastTimeStarted()
Specified by:
getLastTimeStarted in interface EndpointProvider

setLastTimeStoppedToCurrent

public void setLastTimeStoppedToCurrent()

setLastTimeStopped

public void setLastTimeStopped(long lastTimeStopped)

getLastTimeStopped

public long getLastTimeStopped()
Specified by:
getLastTimeStopped in interface EndpointProvider

addEndpointReference

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

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


Copyright © 2011 Talend Inc.. All Rights Reserved.