@UriParams
public class NettyHttpConfiguration
extends org.apache.camel.component.netty.NettyConfiguration
backlog, bossCount, bossPool, broadcast, channelGroup, connectTimeout, DEFAULT_ENABLED_PROTOCOLS, enabledProtocols, keepAlive, keyStoreFile, keyStoreFormat, keyStoreResource, needClientAuth, nettyServerBootstrapFactory, networkInterface, options, passphrase, port, receiveBufferSize, receiveBufferSizePredictor, reuseAddress, securityProvider, sendBufferSize, serverPipelineFactory, ssl, sslClientCertHeaders, sslContextParameters, sslHandler, tcpNoDelay, trustStoreFile, trustStoreResource, workerCount, workerPool| Constructor and Description |
|---|
NettyHttpConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
NettyHttpConfiguration |
copy() |
int |
getChunkedMaxContentLength() |
String |
getHost() |
int |
getMaxHeaderSize() |
String |
getOkStatusCodeRange() |
String |
getPath() |
int |
getPort() |
String |
getProtocol() |
boolean |
isAllowDefaultCodec() |
boolean |
isBridgeEndpoint() |
boolean |
isCompression() |
boolean |
isDisableStreamCache() |
boolean |
isMapHeaders() |
boolean |
isMatchOnUriPrefix() |
boolean |
isSend503whenSuspended() |
boolean |
isThrowExceptionOnFailure() |
boolean |
isTransferException() |
boolean |
isUrlDecodeHeaders() |
boolean |
isUseRelativePath() |
void |
setAllowDefaultCodec(boolean allowDefaultCodec) |
void |
setBridgeEndpoint(boolean bridgeEndpoint)
If the option is true, the producer will ignore the Exchange.HTTP_URI header, and use the endpoint's URI for request.
|
void |
setChunkedMaxContentLength(int chunkedMaxContentLength)
Value in bytes the max content length per chunked frame received on the Netty HTTP server.
|
void |
setCompression(boolean compression)
Allow using gzip/deflate for compression on the Netty HTTP server if the client supports it from the HTTP headers.
|
void |
setDisableStreamCache(boolean disableStreamCache)
Determines whether or not the raw input stream from Netty HttpRequest#getContent() is cached or not
(Camel will read the stream into a in light-weight memory based Stream caching) cache.
|
void |
setHost(String host)
The local hostname such as localhost, or 0.0.0.0 when being a consumer.
|
void |
setMapHeaders(boolean mapHeaders)
If this option is enabled, then during binding from Netty to Camel Message then the headers will be mapped as well
(eg added as header to the Camel Message as well).
|
void |
setMatchOnUriPrefix(boolean matchOnUriPrefix)
Whether or not Camel should try to find a target consumer by matching the URI prefix if no exact match is found.
|
void |
setMaxHeaderSize(int maxHeaderSize)
The maximum length of all headers.
|
void |
setOkStatusCodeRange(String okStatusCodeRange)
The status codes which are considered a success response.
|
void |
setPath(String path)
Resource path
|
void |
setPort(int port)
The port number.
|
void |
setProtocol(String protocol)
The protocol to use which is either http or https
|
void |
setSend503whenSuspended(boolean send503whenSuspended)
Whether to send back HTTP status code 503 when the consumer has been suspended.
|
void |
setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server.
|
void |
setTransferException(boolean transferException)
If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized
in the response as a application/x-java-serialized-object content type.
|
void |
setUrlDecodeHeaders(boolean urlDecodeHeaders)
If this option is enabled, then during binding from Netty to Camel Message then the header values will be URL decoded
(eg %20 will be a space character.
|
void |
setUseRelativePath(boolean useRelativePath)
Sets whether to use a relative path in HTTP requests.
|
getCharsetName, getClientPipelineFactory, getDecoder, getDecoderMaxLineLength, getDecoders, getDelimiter, getEncoder, getEncoders, getEncoding, getMaxChannelMemorySize, getMaximumPoolSize, getMaxTotalMemorySize, getNoReplyLogLevel, getProducerPoolMaxActive, getProducerPoolMaxIdle, getProducerPoolMinEvictableIdle, getProducerPoolMinIdle, getRequestTimeout, getServerClosedChannelExceptionCaughtLogLevel, getServerExceptionCaughtLogLevel, isAutoAppendDelimiter, isClientMode, isDisconnect, isDisconnectOnNoReply, isLazyChannelCreation, isOrderedThreadPoolExecutor, isProducerPoolEnabled, isSync, isTextline, isTransferExchange, isUdpConnectionlessSending, isUseChannelBuffer, parseURI, setAutoAppendDelimiter, setClientMode, setClientPipelineFactory, setDecoder, setDecoderMaxLineLength, setDecoders, setDelimiter, setDisconnect, setDisconnectOnNoReply, setEncoder, setEncoders, setEncoding, setLazyChannelCreation, setMaxChannelMemorySize, setMaximumPoolSize, setMaxTotalMemorySize, setNoReplyLogLevel, setOrderedThreadPoolExecutor, setProducerPoolEnabled, setProducerPoolMaxActive, setProducerPoolMaxIdle, setProducerPoolMinEvictableIdle, setProducerPoolMinIdle, setRequestTimeout, setServerClosedChannelExceptionCaughtLogLevel, setServerExceptionCaughtLogLevel, setSync, setTextline, setTransferExchange, setUdpConnectionlessSending, setUseChannelBuffer, validateConfigurationcompatible, getAddress, getBacklog, getBossCount, getBossPool, getChannelGroup, getConnectTimeout, getEnabledProtocols, getKeyStoreFile, getKeyStoreFormat, getKeyStoreResource, getNettyServerBootstrapFactory, getNetworkInterface, getOptions, getPassphrase, getReceiveBufferSize, getReceiveBufferSizePredictor, getSecurityProvider, getSendBufferSize, getServerPipelineFactory, getSslContextParameters, getSslHandler, getTrustStoreFile, getTrustStoreResource, getWorkerCount, getWorkerPool, isBroadcast, isKeepAlive, isNeedClientAuth, isReuseAddress, isSsl, isSslClientCertHeaders, isTcp, isTcpNoDelay, setBacklog, setBossCount, setBossPool, setBroadcast, setChannelGroup, setConnectTimeout, setEnabledProtocols, setKeepAlive, setKeyStoreFile, setKeyStoreFormat, setKeyStoreResource, setNeedClientAuth, setNettyServerBootstrapFactory, setNetworkInterface, setOptions, setPassphrase, setReceiveBufferSize, setReceiveBufferSizePredictor, setReuseAddress, setSecurityProvider, setSendBufferSize, setServerPipelineFactory, setSsl, setSslClientCertHeaders, setSslContextParameters, setSslHandler, setTcpNoDelay, setTrustStoreFile, setTrustStoreResource, setWorkerCount, setWorkerPool, toStringBootstrapConfigurationpublic NettyHttpConfiguration copy()
copy in class org.apache.camel.component.netty.NettyConfigurationpublic String getProtocol()
getProtocol in class org.apache.camel.component.netty.NettyServerBootstrapConfigurationpublic void setProtocol(String protocol)
setProtocol in class org.apache.camel.component.netty.NettyServerBootstrapConfigurationpublic String getHost()
getHost in class org.apache.camel.component.netty.NettyServerBootstrapConfigurationpublic void setHost(String host)
setHost in class org.apache.camel.component.netty.NettyServerBootstrapConfigurationpublic int getPort()
getPort in class org.apache.camel.component.netty.NettyServerBootstrapConfigurationpublic void setPort(int port)
setPort in class org.apache.camel.component.netty.NettyServerBootstrapConfigurationpublic boolean isCompression()
public void setCompression(boolean compression)
public boolean isThrowExceptionOnFailure()
public void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
public boolean isTransferException()
public void setTransferException(boolean transferException)
public boolean isUrlDecodeHeaders()
public void setUrlDecodeHeaders(boolean urlDecodeHeaders)
public boolean isMapHeaders()
public void setMapHeaders(boolean mapHeaders)
public boolean isMatchOnUriPrefix()
public void setMatchOnUriPrefix(boolean matchOnUriPrefix)
public boolean isBridgeEndpoint()
public void setBridgeEndpoint(boolean bridgeEndpoint)
public String getPath()
public void setPath(String path)
public boolean isDisableStreamCache()
public void setDisableStreamCache(boolean disableStreamCache)
public boolean isSend503whenSuspended()
public void setSend503whenSuspended(boolean send503whenSuspended)
public int getChunkedMaxContentLength()
public void setChunkedMaxContentLength(int chunkedMaxContentLength)
public int getMaxHeaderSize()
public void setMaxHeaderSize(int maxHeaderSize)
TooLongFrameException will be raised.public boolean isAllowDefaultCodec()
isAllowDefaultCodec in class org.apache.camel.component.netty.NettyConfigurationpublic void setAllowDefaultCodec(boolean allowDefaultCodec)
setAllowDefaultCodec in class org.apache.camel.component.netty.NettyConfigurationpublic String getOkStatusCodeRange()
public void setOkStatusCodeRange(String okStatusCodeRange)
public void setUseRelativePath(boolean useRelativePath)
public boolean isUseRelativePath()
Apache Camel