Interface StreamDecoderFactory
- All Known Subinterfaces:
StreamDecoderFactory
Deprecated.
An interface that constructs a new
StreamDecoder
for a given Content-Encoding header value.
A new decoder is valid for the lifetime of an HttpMessage
.-
Method Summary
Modifier and TypeMethodDescriptionstatic StreamDecoderFactory
deflate()
Deprecated.Returns theStreamDecoderFactory
for"deflate"
content encoding.Deprecated.Returns the value of the Content-Encoding header which this factory applies to.static StreamDecoderFactory
gzip()
Deprecated.Returns theStreamDecoderFactory
for"gzip"
content encoding.newDecoder
(io.netty.buffer.ByteBufAllocator alloc) Deprecated.Construct a newStreamDecoder
to use to decode anHttpMessage
.newDecoder
(io.netty.buffer.ByteBufAllocator alloc, int maxLength) Deprecated.Construct a newStreamDecoder
to use to decode anHttpMessage
.
-
Method Details
-
deflate
Deprecated.Returns theStreamDecoderFactory
for"deflate"
content encoding. -
gzip
Deprecated.Returns theStreamDecoderFactory
for"gzip"
content encoding. -
encodingHeaderValue
String encodingHeaderValue()Deprecated.Returns the value of the Content-Encoding header which this factory applies to. -
newDecoder
Deprecated.Construct a newStreamDecoder
to use to decode anHttpMessage
. -
newDecoder
Deprecated.Construct a newStreamDecoder
to use to decode anHttpMessage
.- Parameters:
alloc
- theByteBufAllocator
to allocate a newByteBuf
for the decodedHttpMessage
.maxLength
- the maximum allowed length of a decoded content. If the total length of the decoded content exceedsmaxLength
, aContentTooLargeException
will be raised.
-
StreamDecoderFactory
instead.