public class TransportFactory extends Object
TransportFactory
can be used for generically creating endpoints
from an url. Note that for some endpoints, the url alone is not enough to create
the endpoint if a connector for the endpoint has not already been configured with
the Mule Manager.Modifier and Type | Field and Description |
---|---|
protected static Log |
logger
logger used by this class
|
protected MuleContext |
muleContext |
Constructor and Description |
---|
TransportFactory(MuleContext muleContext) |
Modifier and Type | Method and Description |
---|---|
Connector |
createConnector(EndpointURI url)
Creates an uninitialied connector from the provided MuleEndpointURI.
|
Connector |
createConnector(String uri) |
Connector |
getConnectorByProtocol(String protocol) |
Connector |
getDefaultConnectorByProtocol(String protocol) |
Connector |
getOrCreateConnectorByProtocol(EndpointURI uri)
Returns an initialized connector.
|
Connector |
getOrCreateConnectorByProtocol(ImmutableEndpoint endpoint) |
protected static final Log logger
protected MuleContext muleContext
public TransportFactory(MuleContext muleContext)
public Connector createConnector(EndpointURI url) throws TransportFactoryException
url
- the MuleEndpointURI url to create the connector withTransportFactoryException
public Connector createConnector(String uri) throws TransportFactoryException
TransportFactoryException
public Connector getOrCreateConnectorByProtocol(ImmutableEndpoint endpoint) throws TransportFactoryException
TransportFactoryException
public Connector getOrCreateConnectorByProtocol(EndpointURI uri) throws TransportFactoryException
TransportFactoryException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.