Class ContentDecoder.Factory

java.lang.Object
org.eclipse.jetty.client.ContentDecoder.Factory
Direct Known Subclasses:
GZIPContentDecoder.Factory
Enclosing interface:
ContentDecoder

public abstract static class ContentDecoder.Factory extends Object
Factory for ContentDecoders; subclasses must implement newContentDecoder().

ContentDecoder.Factory have an encoding, which is the string used in Accept-Encoding request header and in Content-Encoding response headers.

ContentDecoder.Factory instances are configured in HttpClient via HttpClient.getContentDecoderFactories().

  • Constructor Details

    • Factory

      protected Factory(String encoding)
  • Method Details

    • getEncoding

      public String getEncoding()
      Returns:
      the type of the decoders created by this factory
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • newContentDecoder

      public abstract ContentDecoder newContentDecoder()
      Factory method for ContentDecoders
      Returns:
      a new instance of a ContentDecoder