@UriParams public class NettyHttpConfiguration extends NettyConfiguration
backlog, bossCount, bossGroup, broadcast, channelGroup, connectTimeout, DEFAULT_ENABLED_PROTOCOLS, enabledProtocols, keepAlive, keyStoreFile, keyStoreFormat, keyStoreResource, 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()
Returns a copy of this configuration
|
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)
The netty component installs a default codec if both, encoder/deocder is null and textline is false.
|
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 is 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, getClientInitializerFactory, getClientPipelineFactory, getDecoder, getDecoderMaxLineLength, getDecoders, getDelimiter, getEncoder, getEncoders, getEncoding, getNoReplyLogLevel, getProducerPoolMaxActive, getProducerPoolMaxIdle, getProducerPoolMinEvictableIdle, getProducerPoolMinIdle, getRequestTimeout, getServerClosedChannelExceptionCaughtLogLevel, getServerExceptionCaughtLogLevel, isAutoAppendDelimiter, isClientMode, isDisconnect, isDisconnectOnNoReply, isLazyChannelCreation, isProducerPoolEnabled, isReuseChannel, isSync, isTextline, isTransferExchange, isUdpByteArrayCodec, isUdpConnectionlessSending, isUseByteBuf, isUsingExecutorService, parseURI, setAutoAppendDelimiter, setClientInitializerFactory, setClientMode, setClientPipelineFactory, 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, isNeedClientAuth, isReconnect, isReuseAddress, isSsl, isSslClientCertHeaders, isTcp, isTcpNoDelay, setBacklog, setBossCount, setBossGroup, setBroadcast, setChannelGroup, setConnectTimeout, setEnabledProtocols, setKeepAlive, setKeyStoreFile, setKeyStoreFormat, setKeyStoreResource, 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()
NettyConfiguration
copy
in class NettyConfiguration
public String getProtocol()
getProtocol
in class NettyServerBootstrapConfiguration
public void setProtocol(String protocol)
setProtocol
in class NettyServerBootstrapConfiguration
public String getHost()
getHost
in class NettyServerBootstrapConfiguration
public void setHost(String host)
setHost
in class NettyServerBootstrapConfiguration
public int getPort()
getPort
in class NettyServerBootstrapConfiguration
public void setPort(int port)
setPort
in class 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 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)
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 boolean isAllowDefaultCodec()
isAllowDefaultCodec
in class NettyConfiguration
public void setAllowDefaultCodec(boolean allowDefaultCodec)
NettyConfiguration
setAllowDefaultCodec
in class NettyConfiguration
public String getOkStatusCodeRange()
public void setOkStatusCodeRange(String okStatusCodeRange)
public void setUseRelativePath(boolean useRelativePath)
public boolean isUseRelativePath()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.