@UriEndpoint(firstVersion="2.0.0",
scheme="servlet",
extendsScheme="http",
title="Servlet",
syntax="servlet:contextPath",
consumerOnly=true,
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() |
String |
getFileNameExtWhitelist() |
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 |
setFileNameExtWhitelist(String fileNameExtWhitelist)
Whitelist of accepted filename extensions for accepting uploaded files.
|
void |
setHttpBinding(org.apache.camel.http.common.HttpBinding binding) |
void |
setServletName(String name)
Name of the servlet to use
|
canConnect, 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, getServiceProperties, 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, setUrlRewrite
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getConsumerProperties, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doInit, doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public ServletEndpoint()
public ServletEndpoint(String endPointURI, ServletComponent component, URI httpUri) throws URISyntaxException
URISyntaxException
public ServletComponent getComponent()
getComponent
in class org.apache.camel.http.common.HttpCommonEndpoint
public org.apache.camel.http.common.HttpBinding getHttpBinding()
getHttpBinding
in class org.apache.camel.http.common.HttpCommonEndpoint
public void setHttpBinding(org.apache.camel.http.common.HttpBinding binding)
setHttpBinding
in class org.apache.camel.http.common.HttpCommonEndpoint
public 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 String getFileNameExtWhitelist()
public void setFileNameExtWhitelist(String fileNameExtWhitelist)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
public boolean isLenientProperties()
isLenientProperties
in interface org.apache.camel.Endpoint
isLenientProperties
in class org.apache.camel.http.common.HttpCommonEndpoint
Apache Camel