org.talend.esb.servicelocator.client
Class SimpleEndpoint

java.lang.Object
  extended by org.talend.esb.servicelocator.client.SimpleEndpoint
All Implemented Interfaces:
Endpoint
Direct Known Subclasses:
SLEndpointProvider

public class SimpleEndpoint
extends Object
implements Endpoint


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.talend.esb.servicelocator.client.Endpoint
Endpoint.PropertiesTransformer
 
Constructor Summary
SimpleEndpoint(QName serviceName, String endpoint)
           
SimpleEndpoint(QName serviceName, String endpoint, BindingType bindingType, TransportType transportType, SLProperties properties)
           
SimpleEndpoint(QName serviceName, String endpoint, SLProperties properties)
           
 
Method Summary
 void addEndpointReference(Node parent)
          Add a WS-Addressing endpoint reference to the given XML tree.
 QName forService()
           
 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()
           
protected  void init(String endpoint, SLProperties properties)
           
 void writeEndpointReferenceTo(Result result, Endpoint.PropertiesTransformer transformer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleEndpoint

public SimpleEndpoint(QName serviceName,
                      String endpoint)

SimpleEndpoint

public SimpleEndpoint(QName serviceName,
                      String endpoint,
                      SLProperties properties)

SimpleEndpoint

public SimpleEndpoint(QName serviceName,
                      String endpoint,
                      BindingType bindingType,
                      TransportType transportType,
                      SLProperties properties)
Method Detail

getBinding

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

getTransport

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

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.

getProperties

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

forService

public QName forService()

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.

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

init

protected void init(String endpoint,
                    SLProperties properties)


Copyright © 2011–2015 Talend Inc.. All rights reserved.