HttpObjectDecoder and its subclasses.
The HttpDecoderConfig objects are mutable to reduce allocation,
but also Cloneable in case a defensive copy is needed.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private boolean | |
| private HttpHeadersFactory | |
| private int | |
| private int | |
| private int | |
| private int | |
| private HttpHeadersFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HttpDecoderConfig | |
| public HttpHeadersFactory | |
| public int | |
| public int | |
| public int | |
| public int | |
| public HttpHeadersFactory | |
| public boolean | |
| public boolean | |
| public boolean | |
| public HttpDecoderConfig | Returns: This decoder config.set to allowDuplicateContentLengths)true to allow multiple content length headers.Set whether more than one |
| public HttpDecoderConfig | Returns: This decoder config.set to allowPartialChunks)false to only allow sending whole chunks down the pipeline.Set whether chunks can be split into multiple messages, if their chunk size exceeds the size of the input buffer. |
| public HttpDecoderConfig | Returns: This decoder config.if chunkedSupported)false, then a Transfer-Encoding: Chunked header will produce an error,
instead of a stream of chunks.Set whether |
| public HttpDecoderConfig | Returns: This decoder config.The header factory to use. headersFactory)Set the |
| public HttpDecoderConfig | Returns: This decoder config.The buffer size in bytes. initialBufferSize)Set the initial size of the temporary buffer used when parsing the lines of the HTTP headers. |
| public HttpDecoderConfig | Returns: This decoder config.The maximum chunk size, in bytes. maxChunkSize)Set the maximum chunk size. |
| public HttpDecoderConfig | Returns: This decoder config.The maximum length, in bytes. maxHeaderSize)Set the maximum line length of header lines. |
| public HttpDecoderConfig | Returns: This decoder config.The maximum length, in bytes. maxInitialLineLength)Set the maximum length of the first line of the HTTP header. |
| public HttpDecoderConfig | Returns: This decoder config.The headers factory to use for creating trailers. trailersFactory)Set the |
| public HttpDecoderConfig | Returns: This decoder config.set to validateHeaders)false to disable header validation.Set whether header validation should be enabled or not. |
| allowDuplicateContentLengths | back to summary |
|---|---|
| private boolean allowDuplicateContentLengths | |
| allowPartialChunks | back to summary |
|---|---|
| private boolean allowPartialChunks | |
| chunkedSupported | back to summary |
|---|---|
| private boolean chunkedSupported | |
| headersFactory | back to summary |
|---|---|
| private HttpHeadersFactory headersFactory | |
| initialBufferSize | back to summary |
|---|---|
| private int initialBufferSize | |
| maxChunkSize | back to summary |
|---|---|
| private int maxChunkSize | |
| maxHeaderSize | back to summary |
|---|---|
| private int maxHeaderSize | |
| maxInitialLineLength | back to summary |
|---|---|
| private int maxInitialLineLength | |
| trailersFactory | back to summary |
|---|---|
| private HttpHeadersFactory trailersFactory | |
| HttpDecoderConfig | back to summary |
|---|---|
| public HttpDecoderConfig() | |
| clone | back to summary |
|---|---|
| public HttpDecoderConfig clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getHeadersFactory | back to summary |
|---|---|
| public HttpHeadersFactory getHeadersFactory() | |
| getInitialBufferSize | back to summary |
|---|---|
| public int getInitialBufferSize() | |
| getMaxChunkSize | back to summary |
|---|---|
| public int getMaxChunkSize() | |
| getMaxHeaderSize | back to summary |
|---|---|
| public int getMaxHeaderSize() | |
| getMaxInitialLineLength | back to summary |
|---|---|
| public int getMaxInitialLineLength() | |
| getTrailersFactory | back to summary |
|---|---|
| public HttpHeadersFactory getTrailersFactory() | |
| isAllowDuplicateContentLengths | back to summary |
|---|---|
| public boolean isAllowDuplicateContentLengths() | |
| isAllowPartialChunks | back to summary |
|---|---|
| public boolean isAllowPartialChunks() | |
| isChunkedSupported | back to summary |
|---|---|
| public boolean isChunkedSupported() | |
| setAllowDuplicateContentLengths | back to summary |
|---|---|
| public HttpDecoderConfig setAllowDuplicateContentLengths(boolean allowDuplicateContentLengths) Set whether more than one
| |
| setAllowPartialChunks | back to summary |
|---|---|
| public HttpDecoderConfig setAllowPartialChunks(boolean allowPartialChunks) Set whether chunks can be split into multiple messages, if their chunk size exceeds the size of the input buffer.
| |
| setChunkedSupported | back to summary |
|---|---|
| public HttpDecoderConfig setChunkedSupported(boolean chunkedSupported) Set whether
| |
| setHeadersFactory | back to summary |
|---|---|
| public HttpDecoderConfig setHeadersFactory(HttpHeadersFactory headersFactory) Set the
For the purpose of
| |
| setInitialBufferSize | back to summary |
|---|---|
| public HttpDecoderConfig setInitialBufferSize(int initialBufferSize) Set the initial size of the temporary buffer used when parsing the lines of the HTTP headers.
| |
| setMaxChunkSize | back to summary |
|---|---|
| public HttpDecoderConfig setMaxChunkSize(int maxChunkSize) Set the maximum chunk size. HTTP requests and responses can be quite large, in which case it's better to process the data as a stream of chunks. This sets the limit, in bytes, at which Netty will send a chunk down the pipeline.
| |
| setMaxHeaderSize | back to summary |
|---|---|
| public HttpDecoderConfig setMaxHeaderSize(int maxHeaderSize) Set the maximum line length of header lines.
This limits how much memory Netty will use when parsing HTTP header key-value pairs.
You would typically set this to the same value as
| |
| setMaxInitialLineLength | back to summary |
|---|---|
| public HttpDecoderConfig setMaxInitialLineLength(int maxInitialLineLength) Set the maximum length of the first line of the HTTP header.
This limits how much memory Netty will use when parsed the initial HTTP header line.
You would typically set this to the same value as
| |
| setTrailersFactory | back to summary |
|---|---|
| public HttpDecoderConfig setTrailersFactory(HttpHeadersFactory trailersFactory) Set the
For the purpose of
| |
| setValidateHeaders | back to summary |
|---|---|
| public HttpDecoderConfig setValidateHeaders(boolean validateHeaders) Set whether header validation should be enabled or not. This works by changing the configured header factory and trailer factory. You usually want header validation enabled (which is the default) in order to prevent request-/response-splitting attacks.
| |