@UriEndpoint(firstVersion="2.0.0",
scheme="servlet",
extendsScheme="http",
title="Servlet",
syntax="servlet:contextPath",
consumerOnly=true,
consumerClass=ServletConsumer.class,
label="http")
public class ServletEndpoint
extends org.apache.camel.http.common.HttpCommonEndpoint
| Constructor and Description |
|---|
ServletEndpoint() |
ServletEndpoint(String endPointURI,
ServletComponent component,
URI httpUri) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
ServletComponent |
getComponent() |
String |
getContextPath() |
org.apache.camel.http.common.HttpBinding |
getHttpBinding() |
String |
getServletName() |
boolean |
isAttachmentMultipartBinding() |
boolean |
isLenientProperties() |
void |
setAttachmentMultipartBinding(boolean attachmentMultipartBinding)
Whether to automatic bind multipart/form-data as attachments on the Camel
Exchange. |
void |
setContextPath(String contextPath)
The context-path to use
|
void |
setHttpBinding(org.apache.camel.http.common.HttpBinding binding) |
void |
setServletName(String name)
Name of the servlet to use
|
connect, disconnect, getAuthDomain, getAuthHost, getAuthMethod, getAuthMethodPriority, getAuthPassword, getAuthUsername, getBinding, getCookieHandler, getHeaderFilterStrategy, getHttpMethod, getHttpMethodRestrict, getHttpUri, getOkStatusCodeRange, getPath, getPort, getProtocol, getProxyAuthDomain, getProxyAuthHost, getProxyAuthMethod, getProxyAuthPassword, getProxyAuthPort, getProxyAuthScheme, getProxyAuthUsername, getProxyHost, getProxyPort, getResponseBufferSize, getUrlRewrite, isAsync, isBridgeEndpoint, isChunked, isConnectionClose, isCopyHeaders, isDisableStreamCache, isEagerCheckContentAvailable, isIgnoreResponseBody, isMapHttpMessageBody, isMapHttpMessageFormUrlEncodedBody, isMapHttpMessageHeaders, isMatchOnUriPrefix, isOptionsEnabled, isPreserveHostHeader, isSingleton, isThrowExceptionOnFailure, isTraceEnabled, isTransferException, setAsync, setAuthDomain, setAuthHost, setAuthMethod, setAuthMethodPriority, setAuthPassword, setAuthUsername, setBinding, setBridgeEndpoint, setChunked, setConnectionClose, setCookieHandler, setCopyHeaders, setDisableStreamCache, setEagerCheckContentAvailable, setHeaderFilterStrategy, setHttpMethod, setHttpMethodRestrict, setHttpUri, setIgnoreResponseBody, setMapHttpMessageBody, setMapHttpMessageFormUrlEncodedBody, setMapHttpMessageHeaders, setMatchOnUriPrefix, setOkStatusCodeRange, setOptionsEnabled, setPreserveHostHeader, setProxyAuthDomain, setProxyAuthHost, setProxyAuthMethod, setProxyAuthPassword, setProxyAuthPort, setProxyAuthScheme, setProxyAuthUsername, setProxyHost, setProxyPort, setResponseBufferSize, setThrowExceptionOnFailure, setTraceEnabled, setTransferException, setUrlRewriteconfigureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic ServletEndpoint()
public ServletEndpoint(String endPointURI, ServletComponent component, URI httpUri) throws URISyntaxException
URISyntaxExceptionpublic ServletComponent getComponent()
getComponent in class org.apache.camel.http.common.HttpCommonEndpointpublic org.apache.camel.http.common.HttpBinding getHttpBinding()
getHttpBinding in class org.apache.camel.http.common.HttpCommonEndpointpublic void setHttpBinding(org.apache.camel.http.common.HttpBinding binding)
setHttpBinding in class org.apache.camel.http.common.HttpCommonEndpointpublic String getContextPath()
public void setContextPath(String contextPath)
public void setServletName(String name)
public String getServletName()
public boolean isAttachmentMultipartBinding()
public void setAttachmentMultipartBinding(boolean attachmentMultipartBinding)
Exchange.
The options attachmentMultipartBinding=true and disableStreamCache=false cannot work together.
Remove disableStreamCache to use AttachmentMultipartBinding.
This is turn off by default as this may require servlet specific configuration to enable this when using Servlet's.public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic boolean isLenientProperties()
isLenientProperties in interface org.apache.camel.EndpointisLenientProperties in class org.apache.camel.http.common.HttpCommonEndpointApache Camel