Class ContentEncodingHttpClient

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, HttpClient

    @Deprecated
    @Contract(threading=SAFE_CONDITIONAL)
    public class ContentEncodingHttpClient
    extends DefaultHttpClient
    Deprecated.
    DefaultHttpClient sub-class which includes a RequestAcceptEncoding for the request and response. Deprecation note: due to the way this class modifies a response body without changing the response headers to reflect the entity changes, it cannot be used as the "backend" for a caching HttpClient and still have uncompressed responses be cached. Users are encouraged to use the DecompressingHttpClient instead of this class, which can be wired in either before or after caching, depending on whether you want to cache responses in compressed or uncompressed form.
    Since:
    4.1
    • Constructor Detail

      • ContentEncodingHttpClient

        public ContentEncodingHttpClient​(ClientConnectionManager conman,
                                         HttpParams params)
        Deprecated.
        Creates a new HTTP client from parameters and a connection manager.
        Parameters:
        params - the parameters
        conman - the connection manager
      • ContentEncodingHttpClient

        public ContentEncodingHttpClient​(HttpParams params)
        Deprecated.
        Parameters:
        params -
      • ContentEncodingHttpClient

        public ContentEncodingHttpClient()
        Deprecated.