Interface ContentEncoding

    • Method Detail

      • getName

        java.lang.String getName()
        Get the ContentEncoding name.
        Returns:
        the ContentEncoding name.
      • getAliases

        java.lang.String[] getAliases()
        Get the ContentEncoding aliases.
        Returns:
        the ContentEncoding aliases.
      • wantDecode

        boolean wantDecode​(HttpHeader header)
        Method should implement the logic, which decides if HTTP packet with the specific HttpHeader should be decoded using this ContentEncoding.
        Parameters:
        header - HTTP packet header.
        Returns:
        true, if this ContentEncoding should be used to decode the HTTP packet, or false otherwise.
      • wantEncode

        boolean wantEncode​(HttpHeader header)
        Method should implement the logic, which decides if HTTP packet with the specific HttpHeader should be encoded using this ContentEncoding.
        Parameters:
        header - HTTP packet header.
        Returns:
        true, if this ContentEncoding should be used to encode the HTTP packet, or false otherwise.