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 withTransportFactoryException
public static Connector getOrCreateConnectorByProtocol(ImmutableEndpoint endpoint, MuleContext muleContext) throws TransportFactoryException
TransportFactoryException
public static Connector getOrCreateConnectorByProtocol(EndpointURI uri, MuleContext muleContext) throws TransportFactoryException
TransportFactoryException
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.