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 org.apache.commons.logging.Log |
logger
logger used by this class
|
| Constructor and Description |
|---|
TransportFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Connector |
createConnector(EndpointURI url,
MuleContext muleContext)
Creates an uninitialied connector from the provided MuleEndpointURI.
|
static Connector |
getConnectorByProtocol(String protocol) |
static Connector |
getOrCreateConnectorByProtocol(EndpointURI uri,
MuleContext muleContext)
Returns an initialized connector.
|
static Connector |
getOrCreateConnectorByProtocol(ImmutableEndpoint endpoint,
MuleContext muleContext) |
protected static final org.apache.commons.logging.Log logger
public static Connector createConnector(EndpointURI url, MuleContext muleContext) throws TransportFactoryException
url - the MuleEndpointURI url to create the connector withTransportFactoryExceptionpublic static Connector getOrCreateConnectorByProtocol(ImmutableEndpoint endpoint, MuleContext muleContext) throws TransportFactoryException
TransportFactoryExceptionpublic static Connector getOrCreateConnectorByProtocol(EndpointURI uri, MuleContext muleContext) throws TransportFactoryException
TransportFactoryExceptionCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.