public class HttpComponent extends DefaultComponent
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.httpclient.HttpClient |
client |
protected HttpConfiguration |
configuration |
protected org.apache.commons.httpclient.MultiThreadedHttpConnectionManager |
connectionManager |
protected org.eclipse.jetty.client.HttpClient |
connectionPool |
protected HttpEndpointType[] |
endpoints |
static java.lang.String[] |
EPR_PROTOCOLS |
protected java.lang.String |
host |
protected java.lang.String |
path |
protected int |
port |
protected java.lang.String |
protocol |
protected ContextManager |
server |
lifeCycle, logger, registry, serviceUnit, serviceUnitManagerchannel, component, consumerExecutor, container, context, correlationId, currentState, executorFactory, INITIALIZED, knownExchanges, mbeanName, poller, polling, providerExecutor, running, transactionManager, workManagerCreated| Constructor and Description |
|---|
HttpComponent() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jetty.client.HttpClient |
createNewJettyClient() |
BaseServiceUnitManager |
createServiceUnitManager() |
protected void |
doInit() |
protected void |
doShutDown() |
protected void |
doStart() |
protected void |
doStop() |
java.lang.Object |
getAuthenticationService() |
org.apache.commons.httpclient.HttpClient |
getClient() |
HttpConfiguration |
getConfiguration() |
protected java.util.List |
getConfiguredEndpoints() |
org.eclipse.jetty.client.HttpClient |
getConnectionPool() |
protected java.lang.Class[] |
getEndpointClasses() |
HttpEndpointType[] |
getEndpoints() |
protected java.lang.String[] |
getEPRProtocols() |
protected java.lang.Object |
getExtensionMBean() |
java.lang.String |
getHost()
Returns the host name.
|
java.lang.Object |
getKeystoreManager() |
HttpProcessor |
getMainProcessor()
When servicemix-http is embedded inside a web application and configured to reuse the existing servlet container, this method
will create and return the HTTPProcessor which will handle all servlet calls
|
java.lang.String |
getPath() |
int |
getPort() |
java.lang.String |
getProtocol() |
protected Endpoint |
getResolvedEPR(javax.jbi.servicedesc.ServiceEndpoint ep) |
ContextManager |
getServer() |
void |
setAuthenticationService(java.lang.Object authenticationService) |
void |
setClient(org.apache.commons.httpclient.HttpClient client) |
void |
setConfiguration(HttpConfiguration configuration) |
void |
setConnectionPool(org.eclipse.jetty.client.HttpClient connectionPool)
Sets the connection pool used by the component.
|
void |
setEndpoints(HttpEndpointType[] endpoints) |
void |
setHost(java.lang.String host)
Sets the host name.
|
void |
setKeystoreManager(java.lang.Object keystoreManager) |
void |
setPath(java.lang.String path) |
void |
setPort(int port) |
void |
setProtocol(java.lang.String protocol) |
void |
setServer(ContextManager server) |
addEndpoint, asList, createRegistry, getComponentContext, getComponentName, getEPRElementName, getEPRServiceName, getLifeCycle, getLogger, getRegistry, getServiceDescription, getServiceUnit, getServiceUnitManager, isExchangeWithConsumerOkay, isExchangeWithProviderOkay, isKnownEndpoint, removeEndpoint, resolveEndpointReference, validateEndpointcreateExecutorFactory, createExtensionMBeanName, exceptionShouldRollbackTx, findExecutorFactory, getContainer, getContext, getCurrentState, getExecutor, getExecutorFactory, getExtensionMBeanName, getKnownExchanges, getSmx3Container, handleExchange, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, onMessageExchange, pollDeliveryChannel, prepareExchange, prepareShutdown, prepareShutdown, processExchange, processExchangeInTx, processExchangeWithoutTx, setComponent, setCurrentState, setExecutor, setExecutorFactory, shutDown, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContainer, getExecutor, getSmx3Container, handleExchange, prepareExchange, prepareShutdownpublic static final java.lang.String[] EPR_PROTOCOLS
protected ContextManager server
protected org.apache.commons.httpclient.HttpClient client
protected org.apache.commons.httpclient.MultiThreadedHttpConnectionManager connectionManager
protected org.eclipse.jetty.client.HttpClient connectionPool
protected HttpConfiguration configuration
protected HttpEndpointType[] endpoints
protected java.lang.String protocol
protected java.lang.String host
protected int port
protected java.lang.String path
public java.lang.String getHost()
public void setHost(java.lang.String host)
host - a string specifying the host namepublic java.lang.String getPath()
public void setPath(java.lang.String path)
path - the path to setpublic int getPort()
public void setPort(int port)
port - the port to setpublic java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
protocol - the protocol to setpublic HttpEndpointType[] getEndpoints()
public void setEndpoints(HttpEndpointType[] endpoints)
endpoints - the endpoints to setpublic ContextManager getServer()
public void setServer(ContextManager server)
public org.apache.commons.httpclient.HttpClient getClient()
public void setClient(org.apache.commons.httpclient.HttpClient client)
client - the HTTP client instance used by the componentpublic org.eclipse.jetty.client.HttpClient getConnectionPool()
public org.eclipse.jetty.client.HttpClient createNewJettyClient()
throws java.lang.Exception
java.lang.Exceptionpublic void setConnectionPool(org.eclipse.jetty.client.HttpClient connectionPool)
jettyClientThreadPoolSize property.connectionPool - a Jetty HttpClientpublic HttpConfiguration getConfiguration()
public void setConfiguration(HttpConfiguration configuration)
configuration - an HttpConfiguration object containing the configuration information needed to establish
HTTP connectionsprotected java.lang.Object getExtensionMBean()
throws java.lang.Exception
getExtensionMBean in class AsyncBaseLifeCyclejava.lang.Exceptionprotected void doInit()
throws java.lang.Exception
doInit in class DefaultComponentjava.lang.Exceptionprotected void doShutDown()
throws java.lang.Exception
doShutDown in class DefaultComponentjava.lang.Exceptionprotected void doStart()
throws java.lang.Exception
doStart in class DefaultComponentjava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class DefaultComponentjava.lang.Exceptionprotected java.lang.String[] getEPRProtocols()
getEPRProtocols in class DefaultComponentprotected Endpoint getResolvedEPR(javax.jbi.servicedesc.ServiceEndpoint ep) throws java.lang.Exception
getResolvedEPR in class AsyncBaseLifeCyclejava.lang.Exceptionpublic java.lang.Object getKeystoreManager()
public void setKeystoreManager(java.lang.Object keystoreManager)
keystoreManager - the keystoreManager to setpublic java.lang.Object getAuthenticationService()
public void setAuthenticationService(java.lang.Object authenticationService)
authenticationService - the authenticationService to setpublic HttpProcessor getMainProcessor()
public BaseServiceUnitManager createServiceUnitManager()
createServiceUnitManager in class DefaultComponentprotected java.util.List getConfiguredEndpoints()
getConfiguredEndpoints in class DefaultComponentprotected java.lang.Class[] getEndpointClasses()
getEndpointClasses in class DefaultComponentCopyright © 2005-2014 FuseSource. All Rights Reserved.