Class LZMAContentEncoding

java.lang.Object
org.glassfish.grizzly.http.LZMAContentEncoding
All Implemented Interfaces:
ContentEncoding

public class LZMAContentEncoding extends Object implements ContentEncoding
  • Field Details

  • Constructor Details

    • LZMAContentEncoding

      public LZMAContentEncoding()
    • LZMAContentEncoding

      public LZMAContentEncoding(EncodingFilter encodingFilter)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: ContentEncoding
      Get the ContentEncoding name.
      Specified by:
      getName in interface ContentEncoding
      Returns:
      the ContentEncoding name.
    • getAliases

      public String[] getAliases()
      Description copied from interface: ContentEncoding
      Get the ContentEncoding aliases.
      Specified by:
      getAliases in interface ContentEncoding
      Returns:
      the ContentEncoding aliases.
    • getLzmaAliases

      public static String[] getLzmaAliases()
    • wantDecode

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

      public boolean wantEncode(HttpHeader header)
      Description copied from interface: ContentEncoding
      Method should implement the logic, which decides if HTTP packet with the specific HttpHeader should be encoded using this ContentEncoding.
      Specified by:
      wantEncode in interface ContentEncoding
      Parameters:
      header - HTTP packet header.
      Returns:
      true, if this ContentEncoding should be used to encode the HTTP packet, or false otherwise.
    • decode

      public ParsingResult decode(org.glassfish.grizzly.Connection connection, HttpContent httpContent)
      Description copied from interface: ContentEncoding
      Decode HTTP packet content represented by HttpContent.
      Specified by:
      decode in interface ContentEncoding
      Parameters:
      connection - Connection.
      httpContent - HttpContent to decode.
      Returns:
      ParsingResult, which represents the result of decoding.
    • encode

      public HttpContent encode(org.glassfish.grizzly.Connection connection, HttpContent httpContent)
      Description copied from interface: ContentEncoding
      Encode HTTP packet content represented by HttpContent.
      Specified by:
      encode in interface ContentEncoding
      Parameters:
      connection - Connection.
      httpContent - HttpContent to encode.
      Returns:
      encoded HttpContent.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object