Package io.servicetalk.encoding.api
Interface ContentCodecBuilder
-
@Deprecated public interface ContentCodecBuilder
Deprecated.encoding-api based solution is being replaced with a netty implementation available under servicetalk-encoding-netty dependency.Builder forContentCodec
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ContentCodec
build()
Deprecated.Build and return an instance of theContentCodec
with the configuration of the builder.ContentCodecBuilder
setMaxAllowedPayloadSize(int maxAllowedPayloadSize)
Deprecated.Sets the maximum allowed decompressed payload size that the codec can process.
-
-
-
Method Detail
-
setMaxAllowedPayloadSize
ContentCodecBuilder setMaxAllowedPayloadSize(int maxAllowedPayloadSize)
Deprecated.Sets the maximum allowed decompressed payload size that the codec can process. This can help prevent malicious attempts to decode malformed payloads that can drain resources of the running instance.- Parameters:
maxAllowedPayloadSize
- the maximum allowed payload size- Returns:
this
- See Also:
- Zip Bomb
-
build
ContentCodec build()
Deprecated.Build and return an instance of theContentCodec
with the configuration of the builder.- Returns:
- the
ContentCodec
with the configuration of the builder
-
-