@UriParams
public class NettyHttpConfiguration
extends org.apache.camel.component.netty.NettyConfiguration
backlog, bossCount, bossGroup, broadcast, channelGroup, connectTimeout, DEFAULT_ENABLED_PROTOCOLS, enabledProtocols, keepAlive, keyStoreFile, keyStoreFormat, keyStoreResource, nativeTransport, needClientAuth, nettyServerBootstrapFactory, networkInterface, options, passphrase, port, receiveBufferSize, receiveBufferSizePredictor, reuseAddress, securityProvider, sendBufferSize, serverInitializerFactory, ssl, sslClientCertHeaders, sslContextParameters, sslHandler, tcpNoDelay, trustStoreFile, trustStoreResource, workerCount, workerGroup
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 |
isBridgeEndpoint() |
boolean |
isCompression() |
boolean |
isDisableStreamCache() |
boolean |
isHttpProxy() |
boolean |
isLogWarnOnBadRequest() |
boolean |
isMapHeaders() |
boolean |
isMatchOnUriPrefix() |
boolean |
isMuteException() |
boolean |
isSend503whenSuspended() |
boolean |
isThrowExceptionOnFailure() |
boolean |
isTransferException() |
boolean |
isUrlDecodeHeaders() |
boolean |
isUseRelativePath() |
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() or HttpResponset#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 |
setLogWarnOnBadRequest(boolean logWarnOnBadRequest)
Whether Netty HTTP server should log a WARN if decoding the HTTP request failed and a HTTP Status 400 (bad request) is returned.
|
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 |
setMuteException(boolean muteException)
If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace.
|
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, https or proxy - a consumer only option.
|
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, getClientInitializerFactory, getClientPipelineFactory, getCorrelationManager, getDecoder, getDecoderMaxLineLength, getDecoders, getDelimiter, getEncoder, getEncoders, getEncoding, getNoReplyLogLevel, getProducerPoolMaxActive, getProducerPoolMaxIdle, getProducerPoolMinEvictableIdle, getProducerPoolMinIdle, getRequestTimeout, getServerClosedChannelExceptionCaughtLogLevel, getServerExceptionCaughtLogLevel, isAllowDefaultCodec, isAllowSerializedHeaders, isAutoAppendDelimiter, isClientMode, isDisconnect, isDisconnectOnNoReply, isLazyChannelCreation, isProducerPoolEnabled, isReuseChannel, isSync, isTextline, isTransferExchange, isUdpByteArrayCodec, isUdpConnectionlessSending, isUseByteBuf, isUsingExecutorService, parseURI, setAllowDefaultCodec, setAllowSerializedHeaders, setAutoAppendDelimiter, setClientInitializerFactory, setClientMode, setClientPipelineFactory, setCorrelationManager, setDecoder, setDecoderMaxLineLength, setDecoders, setDelimiter, setDisconnect, setDisconnectOnNoReply, setEncoder, setEncoders, setEncoding, setLazyChannelCreation, setNoReplyLogLevel, setProducerPoolEnabled, setProducerPoolMaxActive, setProducerPoolMaxIdle, setProducerPoolMinEvictableIdle, setProducerPoolMinIdle, setRequestTimeout, setReuseChannel, setServerClosedChannelExceptionCaughtLogLevel, setServerExceptionCaughtLogLevel, setSync, setTextline, setTransferExchange, setUdpByteArrayCodec, setUdpConnectionlessSending, setUseByteBuf, setUsingExecutorService, validateConfiguration
compatible, getAddress, getBacklog, getBossCount, getBossGroup, getChannelGroup, getConnectTimeout, getEnabledProtocols, getKeyStoreFile, getKeyStoreFormat, getKeyStoreResource, getNettyServerBootstrapFactory, getNetworkInterface, getOptions, getPassphrase, getReceiveBufferSize, getReceiveBufferSizePredictor, getReconnectInterval, getSecurityProvider, getSendBufferSize, getServerInitializerFactory, getServerPipelineFactory, getSslContextParameters, getSslHandler, getTrustStoreFile, getTrustStoreResource, getWorkerCount, getWorkerGroup, isBroadcast, isKeepAlive, isNativeTransport, isNeedClientAuth, isReconnect, isReuseAddress, isSsl, isSslClientCertHeaders, isTcp, isTcpNoDelay, setBacklog, setBossCount, setBossGroup, setBroadcast, setChannelGroup, setConnectTimeout, setEnabledProtocols, setKeepAlive, setKeyStoreFile, setKeyStoreFormat, setKeyStoreResource, setNativeTransport, setNeedClientAuth, setNettyServerBootstrapFactory, setNetworkInterface, setOptions, setPassphrase, setReceiveBufferSize, setReceiveBufferSizePredictor, setReconnect, setReconnectInterval, setReuseAddress, setSecurityProvider, setSendBufferSize, setServerInitializerFactory, setServerPipelineFactory, setSsl, setSslClientCertHeaders, setSslContextParameters, setSslHandler, setTcpNoDelay, setTrustStoreFile, setTrustStoreResource, setWorkerCount, setWorkerGroup, toStringBootstrapConfiguration
public NettyHttpConfiguration copy()
copy
in class org.apache.camel.component.netty.NettyConfiguration
public String getProtocol()
getProtocol
in class org.apache.camel.component.netty.NettyServerBootstrapConfiguration
public void setProtocol(String protocol)
setProtocol
in class org.apache.camel.component.netty.NettyServerBootstrapConfiguration
public String getHost()
getHost
in class org.apache.camel.component.netty.NettyServerBootstrapConfiguration
public void setHost(String host)
setHost
in class org.apache.camel.component.netty.NettyServerBootstrapConfiguration
public int getPort()
getPort
in class org.apache.camel.component.netty.NettyServerBootstrapConfiguration
public void setPort(int port)
setPort
in class org.apache.camel.component.netty.NettyServerBootstrapConfiguration
public 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 isMuteException()
public void setMuteException(boolean muteException)
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 isLogWarnOnBadRequest()
public void setLogWarnOnBadRequest(boolean logWarnOnBadRequest)
public boolean isBridgeEndpoint()
public void setBridgeEndpoint(boolean bridgeEndpoint)
public String getPath()
public void setPath(String path)
public boolean isDisableStreamCache()
public void setDisableStreamCache(boolean disableStreamCache)
Exchange
may not
be able to read the Netty stream, because Netty has closed it.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 String getOkStatusCodeRange()
public void setOkStatusCodeRange(String okStatusCodeRange)
public void setUseRelativePath(boolean useRelativePath)
public boolean isUseRelativePath()
public boolean isHttpProxy()
Apache Camel