Class ContentDecoder.Factory

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

@Deprecated(since="2021-05-27") public abstract static class ContentDecoder.Factory extends Object
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
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().

  • Method Details

    • getEncoding

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

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

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

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