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 for ContentCodec.
    • 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 the ContentCodec with the configuration of the builder.
        Returns:
        the ContentCodec with the configuration of the builder