org.apache.camel.component.jetty
Class JettyHttpComponent
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultComponent
org.apache.camel.impl.HeaderFilterStrategyComponent
org.apache.camel.component.http.HttpComponent
org.apache.camel.component.jetty.JettyHttpComponent
- All Implemented Interfaces:
- Component, Service, ShutdownableService, HeaderFilterStrategyAware
public class JettyHttpComponent
- extends HttpComponent
An HttpComponent which starts an embedded Jetty for to handle consuming from
the http endpoints.
- Version:
- $Revision: 20445 $
| Methods inherited from class org.apache.camel.component.http.HttpComponent |
configureAuth, configureProxyAuth, createHttpClientConfigurer, getHttpBinding, getHttpClientConfigurer, getHttpConfiguration, getHttpConnectionManager, setHttpBinding, setHttpClientConfigurer, setHttpConfiguration, setHttpConnectionManager, useIntrospectionOnEndpoint |
| Methods inherited from class org.apache.camel.impl.DefaultComponent |
afterConfiguration, createEndpoint, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, validateParameters, validateURI |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TMP_DIR
public static final String TMP_DIR
- See Also:
- Constant Field Values
CONNECTORS
protected static final HashMap<String,org.apache.camel.component.jetty.JettyHttpComponent.ConnectorRef> CONNECTORS
sslKeyPassword
protected String sslKeyPassword
sslPassword
protected String sslPassword
sslKeystore
protected String sslKeystore
sslSocketConnectors
protected Map<Integer,org.eclipse.jetty.server.ssl.SslSocketConnector> sslSocketConnectors
httpClient
protected org.eclipse.jetty.client.HttpClient httpClient
httpClientThreadPool
protected org.eclipse.jetty.util.thread.ThreadPool httpClientThreadPool
httpClientMinThreads
protected Integer httpClientMinThreads
httpClientMaxThreads
protected Integer httpClientMaxThreads
mbContainer
protected org.eclipse.jetty.jmx.MBeanContainer mbContainer
enableJmx
protected boolean enableJmx
JettyHttpComponent
public JettyHttpComponent()
createEndpoint
protected Endpoint createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
throws Exception
- Overrides:
createEndpoint in class HttpComponent
- Throws:
Exception
connect
public void connect(HttpConsumer consumer)
throws Exception
- Connects the URL specified on the endpoint to the specified processor.
- Overrides:
connect in class HttpComponent
- Throws:
Exception
disconnect
public void disconnect(HttpConsumer consumer)
throws Exception
- Disconnects the URL specified on the endpoint from the specified processor.
- Overrides:
disconnect in class HttpComponent
- Throws:
Exception
getSslKeyPassword
public String getSslKeyPassword()
setSslKeyPassword
public void setSslKeyPassword(String sslKeyPassword)
getSslPassword
public String getSslPassword()
setSslPassword
public void setSslPassword(String sslPassword)
setKeystore
public void setKeystore(String sslKeystore)
getKeystore
public String getKeystore()
getSslSocketConnector
public org.eclipse.jetty.server.ssl.SslSocketConnector getSslSocketConnector(int port)
createSslSocketConnector
public org.eclipse.jetty.server.ssl.SslSocketConnector createSslSocketConnector()
setSslSocketConnectors
public void setSslSocketConnectors(Map<Integer,org.eclipse.jetty.server.ssl.SslSocketConnector> connectors)
getHttpClient
public org.eclipse.jetty.client.HttpClient getHttpClient()
setHttpClient
public void setHttpClient(org.eclipse.jetty.client.HttpClient httpClient)
getHttpClientThreadPool
public org.eclipse.jetty.util.thread.ThreadPool getHttpClientThreadPool()
setHttpClientThreadPool
public void setHttpClientThreadPool(org.eclipse.jetty.util.thread.ThreadPool httpClientThreadPool)
getHttpClientMinThreads
public Integer getHttpClientMinThreads()
setHttpClientMinThreads
public void setHttpClientMinThreads(Integer httpClientMinThreads)
getHttpClientMaxThreads
public Integer getHttpClientMaxThreads()
setHttpClientMaxThreads
public void setHttpClientMaxThreads(Integer httpClientMaxThreads)
setEnableJmx
public void setEnableJmx(boolean enableJmx)
isEnableJmx
public boolean isEnableJmx()
getMbContainer
public org.eclipse.jetty.jmx.MBeanContainer getMbContainer()
setMbContainer
public void setMbContainer(org.eclipse.jetty.jmx.MBeanContainer mbContainer)
createServletForConnector
protected CamelServlet createServletForConnector(org.eclipse.jetty.server.Server server,
org.eclipse.jetty.server.Connector connector,
List<org.eclipse.jetty.server.Handler> handlers)
throws Exception
- Throws:
Exception
createServer
protected org.eclipse.jetty.server.Server createServer()
throws Exception
- Throws:
Exception
startMbContainer
protected void startMbContainer()
- Starts
mbContainer and registers the container with itself as a managed bean
logging an error if there is a problem starting the container.
Does nothing if mbContainer is null.
doStart
protected void doStart()
throws Exception
- Overrides:
doStart in class DefaultComponent
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop in class DefaultComponent
- Throws:
Exception
Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.