public abstract class JettyHttpEndpoint
extends org.apache.camel.component.http.HttpEndpoint
| Constructor and Description |
|---|
JettyHttpEndpoint(JettyHttpComponent component,
String uri,
URI httpURL) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
abstract JettyContentExchange |
createContentExchange() |
protected org.eclipse.jetty.client.HttpClient |
createJettyHttpClient() |
org.apache.camel.Producer |
createProducer() |
JettyHttpComponent |
getComponent() |
Long |
getContinuationTimeout() |
List<javax.servlet.Filter> |
getFilters() |
List<org.eclipse.jetty.server.Handler> |
getHandlers() |
org.eclipse.jetty.client.HttpClient |
getHttpClient() |
Integer |
getHttpClientMaxThreads() |
Integer |
getHttpClientMinThreads() |
Map<String,Object> |
getHttpClientParameters() |
JettyHttpBinding |
getJettyBinding(org.eclipse.jetty.client.HttpClient httpClient) |
javax.servlet.Filter |
getMultipartFilter() |
org.apache.camel.util.jsse.SSLContextParameters |
getSslContextParameters() |
Boolean |
getUseContinuation() |
boolean |
isEnableJmx() |
boolean |
isEnableMultipartFilter() |
boolean |
isSendDateHeader() |
boolean |
isSendServerVersion() |
boolean |
isSessionSupport() |
void |
setContinuationTimeout(Long continuationTimeout)
Allows to set a timeout in millis when using Jetty as consumer (server).
|
void |
setEnableJmx(boolean enableJmx)
If this option is true, Jetty JMX support will be enabled for this endpoint.
|
void |
setEnableMultipartFilter(boolean enableMultipartFilter)
Whether Jetty org.eclipse.jetty.servlets.MultiPartFilter is enabled or not.
|
void |
setFilters(List<javax.servlet.Filter> filterList) |
void |
setHandlers(List<org.eclipse.jetty.server.Handler> handlers) |
void |
setHttpClient(org.eclipse.jetty.client.HttpClient httpClient)
Sets a shared
HttpClient to use for all producers
created by this endpoint. |
void |
setHttpClientMaxThreads(Integer httpClientMaxThreads)
To set a value for maximum number of threads in HttpClient thread pool.
|
void |
setHttpClientMinThreads(Integer httpClientMinThreads)
To set a value for minimum number of threads in HttpClient thread pool.
|
void |
setHttpClientParameters(Map<String,Object> httpClientParameters)
Configuration of Jetty's HttpClient.
|
void |
setJettyBinding(JettyHttpBinding jettyBinding) |
void |
setMultipartFilter(javax.servlet.Filter filter)
Allows using a custom multipart filter.
|
void |
setSendDateHeader(boolean sendDateHeader)
If the option is true, jetty server will send the date header to the client which sends the request.
|
void |
setSendServerVersion(boolean sendServerVersion)
If the option is true, jetty will send the server header with the jetty version information to the client which sends the request.
|
void |
setSessionSupport(boolean support)
Specifies whether to enable the session manager on the server side of Jetty.
|
void |
setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters)
To configure security using SSLContextParameters
|
void |
setUseContinuation(Boolean useContinuation)
Whether or not to use Jetty continuations for the Jetty Server.
|
connect, createHttpClient, createPollingConsumer, disconnect, getAuthMethodPriority, getBinding, getClientParams, getHeaderFilterStrategy, getHttpClientConfigurer, getHttpConnectionManager, getHttpMethodRestrict, getHttpUri, getPath, getPort, getProtocol, getProxyHost, getProxyPort, getResponseBufferSize, getUrlRewrite, isBridgeEndpoint, isChunked, isDisableStreamCache, isLenientProperties, isMatchOnUriPrefix, isSingleton, isThrowExceptionOnFailure, isTraceEnabled, isTransferException, setAuthMethodPriority, setBinding, setBridgeEndpoint, setChunked, setClientParams, setDisableStreamCache, setHeaderFilterStrategy, setHttpClientConfigurer, setHttpConnectionManager, setHttpMethodRestrict, setHttpUri, setMatchOnUriPrefix, setProxyHost, setProxyPort, setResponseBufferSize, setThrowExceptionOnFailure, setTraceEnabled, setTransferException, setUrlRewriteconfigureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic JettyHttpEndpoint(JettyHttpComponent component, String uri, URI httpURL) throws URISyntaxException
URISyntaxExceptionpublic JettyHttpComponent getComponent()
getComponent in class org.apache.camel.component.http.HttpEndpointpublic org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointcreateProducer in class org.apache.camel.component.http.HttpEndpointExceptionprotected org.eclipse.jetty.client.HttpClient createJettyHttpClient()
throws Exception
Exceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointcreateConsumer in class org.apache.camel.component.http.HttpEndpointExceptionpublic void setSessionSupport(boolean support)
public boolean isSessionSupport()
public List<org.eclipse.jetty.server.Handler> getHandlers()
public void setHandlers(List<org.eclipse.jetty.server.Handler> handlers)
public org.eclipse.jetty.client.HttpClient getHttpClient()
throws Exception
Exceptionpublic void setHttpClient(org.eclipse.jetty.client.HttpClient httpClient)
HttpClient to use for all producers
created by this endpoint. By default each producer will
use a new http client, and not share.
Important: Make sure to handle the lifecycle of the shared
client, such as stopping the client, when it is no longer in use.
Camel will call the start method on the client to ensure
its started when this endpoint creates a producer.
This options should only be used in special circumstances.public JettyHttpBinding getJettyBinding(org.eclipse.jetty.client.HttpClient httpClient)
public void setJettyBinding(JettyHttpBinding jettyBinding)
public boolean isEnableJmx()
public void setEnableJmx(boolean enableJmx)
public boolean isSendServerVersion()
public void setSendServerVersion(boolean sendServerVersion)
public boolean isSendDateHeader()
public void setSendDateHeader(boolean sendDateHeader)
public boolean isEnableMultipartFilter()
public void setEnableMultipartFilter(boolean enableMultipartFilter)
public void setMultipartFilter(javax.servlet.Filter filter)
public javax.servlet.Filter getMultipartFilter()
public void setFilters(List<javax.servlet.Filter> filterList)
public List<javax.servlet.Filter> getFilters()
public Long getContinuationTimeout()
public void setContinuationTimeout(Long continuationTimeout)
public Boolean getUseContinuation()
public void setUseContinuation(Boolean useContinuation)
public org.apache.camel.util.jsse.SSLContextParameters getSslContextParameters()
public void setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters)
public Integer getHttpClientMinThreads()
public void setHttpClientMinThreads(Integer httpClientMinThreads)
public Integer getHttpClientMaxThreads()
public void setHttpClientMaxThreads(Integer httpClientMaxThreads)
public void setHttpClientParameters(Map<String,Object> httpClientParameters)
public abstract JettyContentExchange createContentExchange()
Apache Camel