All Classes and Interfaces
Class
Description
Deprecated.
Deprecated.
(4.2) use
AuthenticationStrategy
Deprecated.
(4.2) do not use
Deprecated.
(4.2) use
AbstractConnPool
Abstract cookie specification which can delegate the job of parsing,
validation or matching cookie attributes to a number of arbitrary
CookieAttributeHandler
s.Deprecated.
(4.3) use
HttpClientBuilder
.Deprecated.
(4.2) do not use
Deprecated.
(4.2) do not use
A generic
ResponseHandler
that works with the response entity
for successful (2xx) responses.Deprecated.
(4.4) use an implementation of
HostnameVerifier
or
DefaultHostnameVerifier
.The
AIMDBackoffManager
applies an additive increase,
multiplicative decrease (AIMD) to managing a dynamic limit to
the number of connections allowed to a given host.Deprecated.
Deprecated.
(4.4) Use
NoopHostnameVerifier
Constants and static helpers related to the HTTP authentication.
Abstract
AuthScheme
cache.Signals a failure in authentication process
Deprecated.
(4.2) use
AuthenticationStrategy
/**
A handler for determining if an HTTP response represents an authentication challenge that was
sent back to the client as a result of authentication failure.
Deprecated.
(4.3) use
RequestConfig
and constructor parameters of
AuthSchemeProvider
s.Deprecated.
(4.3) use
RequestConfig
and constructor parameters of
AuthSchemeProvider
s.Deprecated.
(4.3) use
RequestConfig
and constructor parameters of
AuthSchemeProvider
s.Deprecated.
(4.3) use
AuthSchemes
.This interface represents an abstract challenge-response oriented
authentication scheme.
Abstract authentication scheme class that serves as a basis
for all authentication schemes supported by HttpClient.
Deprecated.
(4.3) use
AuthSchemeProvider
Factory for
AuthScheme
implementations.Deprecated.
(4.3) use
Registry
Standard authentication schemes supported by HttpClient.
AuthScope
represents an authentication scope consisting of a host name,
a port number, a realm name and an authentication scheme name.This class provides detailed information about the state of the authentication process.
Deprecated.
(4.3) use
HttpClientBuilder
.Represents a controller that dynamically adjusts the size
of an available connection pool based on feedback from
using the connections.
Default implementation of
AuthCache
.Deprecated.
(4.3) use
BasicHttpClientConnectionManager
.Default implementation of
SetCookie
.Default implementation of
SetCookie2
.Default implementation of
CookieStore
Default implementation of
CredentialsProvider
.Deprecated.
(4.3) do not use.
A connection manager for a single connection.
Deprecated.
(4.3) do not use.
Deprecated.
(4.2) do not use
Deprecated.
(4.2) use
PoolEntry
Deprecated.
(4.2) do not use
A
ResponseHandler
that returns the response body as a String
for successful (2xx) responses.Basic
HttpRouteDirector
implementation.Basic authentication scheme as defined in RFC 2617.
AuthSchemeProvider
implementation that creates and initializes
BasicScheme
instances.Basic user principal used for HTTP authentication
Deprecated.
(4.4) use
DefaultCookieSpec
.Deprecated.
(4.4) use
DefaultCookieSpecProvider
.Deprecated.
(4.4) Use
DefaultHostnameVerifier
Deprecated.
(4.4) use
DefaultCookieSpec
.Deprecated.
(4.4) use
DefaultCookieSpecProvider
.Deprecated.
(4.4) no longer used.
Challenge mode (TARGET or PROXY)
Signals a circular redirect
Deprecated.
(4.3) replaced by
HttpClientConnectionManager
.Deprecated.
(4.3) replaced by
HttpClientConnectionManager
.Deprecated.
(4.3) replaced by
HttpClientConnectionManager
.Deprecated.
(4.3) replaced by
ConnectionRequest
.Deprecated.
(4.3) use
HttpClientContext
.Deprecated.
(4.3) use
HttpClientContext
ClientCookie extends the standard
Cookie
interface with
additional client specific functionality such ability to retrieve
original cookie attributes exactly as they were specified by the
origin server.This interface represents an element in the HTTP request execution chain.
Deprecated.
(4.3) use
RequestConfig
.Deprecated.
(4.3) use configuration classes provided 'org.apache.http.config'
and 'org.apache.http.client.config'
Deprecated.
(4.3) use
RequestConfig
.Signals an error in the HTTP protocol.
A collection of utilities to workaround limitations of Java clone framework.
Base implementation of
HttpClient
that also implements Closeable
.Extended version of the
HttpResponse
interface that also extends Closeable
.Extension of
CookieAttributeHandler
intended
to handle one specific common attribute whose name is returned with
CommonCookieAttributeHandler.getAttributeName()
method.Configuration interface for HTTP requests.
Deprecated.
(4.1) use custom
DefaultHttpResponseParser
implementation.Deprecated.
(4.1) use custom
DefaultHttpResponseParser
implementation.When managing a dynamic number of connections for a given route, this
strategy assesses whether a given request execution outcome should
result in a backoff signal or not, based on either examining the
Throwable
that resulted or by examining the resulting
response (e.g.Interface for deciding how long a connection can remain
idle before being reused.
A timeout while waiting for an available connection
from a connection manager.
Interface for releasing a connection.
Represents a request for a
HttpClientConnection
whose life cycle
is managed by a connection manager.Signals that the connection has been shut down or released back to the
the connection pool
A factory for creating and connecting connection sockets.
A timeout while connecting to an HTTP server or waiting for an
available connection from an HttpConnectionManager.
Deprecated.
(4.1) use configuration methods of the specific connection manager implementation.
Deprecated.
(4.1) use configuration methods of the specific connection manager implementation.
Deprecated.
(4.1) use configuration methods of the specific connection manager implementation.
Deprecated.
(4.3) no longer used.
Deprecated.
(4.2) use
ConnPoolControl
Deprecated.
(4.2) use
AbstractConnPool
Deprecated.
(4.3) use
RequestConfig
.Deprecated.
(4.3) use
RequestConfig
.Deprecated.
(4.3) use
RequestConfig
.Deprecated.
(4.2) use
HttpClientBuilder
This interface represents an extended authentication scheme
that requires access to
HttpContext
in order to
generate an authorization string.Cookie interface represents a token or short packet of state information
(also referred to as "magic-cookie") that the HTTP agent and the target
server can exchange to maintain a session.
This interface represents a cookie attribute handler responsible
for parsing, validating, and matching a specific cookie attribute,
such as path, domain, port, etc.
This cookie comparator can be used to compare identity of cookies.
CookieOrigin class encapsulates details of an origin server that
are relevant when parsing, validating or matching HTTP cookies.
This cookie comparator ensures that multiple cookies satisfying
a common criteria are ordered in the
Cookie
header such
that those with more specific Path attributes precede those with
less specific.Deprecated.
(4.3) use
CookieSpecs
.This cookie comparator ensures that cookies with longer paths take precedence over
cookies with shorter path.
Signals that a cookie violates a restriction imposed by the cookie
specification.
Defines the cookie management specification.
Cookie management functions shared by all specification.
Deprecated.
(4.3) use
CookieSpecProvider
Deprecated.
(4.3) use constructor parameters of
CookieSpecProvider
s.Deprecated.
(4.3) use constructor parameters of
CookieSpecProvider
s.Factory for
CookieSpec
implementations.Deprecated.
(4.3) use
Registry
.Standard cookie specifications supported by HttpClient.
This interface represents an abstract store for
Cookie
objects.This interface represents a set of credentials consisting of a security
principal and a secret (password) that can be used to establish user
identity
Abstract credentials provider that maintains a collection of user
credentials.
Deprecated.
(4.3) no longer used.
A utility class for parsing and formatting HTTP dates as used in cookies and
other headers.
Deprecated.
(4.3) Use
DateUtils
.Common base class for decompressing
HttpEntity
implementations.Deprecated.
(4.3) use
HttpClientBuilder
This
ConnectionBackoffStrategy
backs off either for a raw
network socket or connection timeout or if the server explicitly
sends a 503 (Service Unavailable) response.Deprecated.
(4.3) use
ManagedHttpClientConnectionFactory
.Deprecated.
(4.3) use
PoolingHttpClientConnectionManager
.Default implementation of a strategy deciding duration
that a connection can remain idle.
Default cookie specification that picks up the best matching cookie policy based on
the format of cookies sent with the HTTP response.
CookieSpecProvider
implementation that provides an instance of
DefaultCookieSpec
.Default
HostnameVerifier
implementation.Deprecated.
(4.3) use
HttpClientBuilder
see also CloseableHttpClient
.Default implementation of
HttpClientConnectionOperator
used as default in Http client,
when no instance provided by user to BasicHttpClientConnectionManager
or PoolingHttpClientConnectionManager
constructor.The default
HttpRequestRetryHandler
used by request executors.Lenient HTTP response parser implementation that can skip malformed data until
a valid HTTP response message head is encountered.
Default factory for response message parsers.
Deprecated.
(4.3) use
DefaultRoutePlanner
Default
ManagedHttpClientConnection
implementation.Deprecated.
(4.2) use
ProxyAuthenticationStrategy
Implementation of an
HttpRoutePlanner
that routes requests through a default proxy.Deprecated.
(4.1) use
DefaultRedirectStrategy
.Default implementation of
RedirectStrategy
.Deprecated.
Do not use.
Deprecated.
(4.2) use
DefaultHttpResponseParser
Default implementation of an
HttpRoutePlanner
.Default
SchemePortResolver
.Default implementation of the
ServiceUnavailableRetryStrategy
interface.Deprecated.
(4.2) use
TargetAuthenticationStrategy
Default implementation of
UserTokenHandler
.HttpEntityWrapper
responsible for handling
deflate Content Coded responses.Deflate input stream.
InputStreamFactory
for handling Deflate Content Coded responses.Digest authentication scheme as defined in RFC 2617.
AuthSchemeProvider
implementation that creates and initializes
DigestScheme
instances.Users may implement this interface to override the normal DNS lookup offered
by the OS.
A collection of utilities relating to Domain Name System.
Domain types differentiated by Mozilla Public Suffix List.
Builder for
HttpEntity
instances.Deprecated.
(4.3) do not use.
A stream wrapper that triggers actions on
close()
and EOF.A watcher for
EofSensorInputStream
.Collection of different counters used to gather metrics for
FutureRequestExecutionService
.HttpAsyncClientWithFuture wraps calls to execute with a
HttpRequestFutureTask
and schedules them using the provided executor service.Wrapping entity that compresses content when
writing
.HttpEntityWrapper
for handling gzip
Content Coded responses.InputStreamFactory
for handling GZIPContent Coded responses.Deprecated.
(4.1) Do not use
Deprecated.
(4.3) reserved for internal use.
This interface represents only the most basic contract for HTTP request
execution.
Builder for
CloseableHttpClient
instances.Represents a manager of persistent client connections.
Connection operator that performs connection connect and upgrade operations.
Adaptor class that provides convenience type safe setters and getters
for common
HttpContext
attributes used in the course
of HTTP request execution.Deprecated.
(4.3) provided for compatibility with
HttpParams
.Deprecated.
(4.3) use
RequestConfig
Factory methods for
CloseableHttpClient
instances.Convenience methods for closing response and client objects.
Generic
HttpConnection
factory.HTTP DELETE method
Basic implementation of an entity enclosing HTTP request
that can be modified
Interface to be implemented by any object that wishes to be notified of
blocking I/O operations that could be cancelled.
HTTP GET method.
HTTP HEAD method.
A
ConnectException
that specifies the HttpHost
that was
being connected to.Deprecated.
(4.3)
HTTP OPTIONS method.
HTTP PATCH method.
HTTP POST method.
HTTP PUT method.
Base implementation of
HttpUriRequest
.FutureTask implementation that wraps a HttpAsyncClientCallable and exposes various task
specific metrics.
A handler for determining if an HttpRequest should be retried after a
recoverable exception during execution.
A wrapper class for
HttpRequest
that can be used to change properties of the current
request without modifying the original object.Signals a non 2xx HTTP response.
The route for a request.
Deprecated.
(4.3) replaced by
HttpClientConnectionManager
.Provides directions on establishing a route.
Encapsulates logic to compute a
HttpRoute
to a target host.HTTP TRACE method.
Extended version of the
HttpRequest
interface that provides
convenience methods to access request properties such as request URI
and method type.This class maintains a background thread to enforce an eviction policy for expired / idle
persistent connections kept alive in the connection pool.
Deprecated.
(4.1) no longer used
Deprecated.
(4.4) use standard
IDN
.CookieSpec that ignores all cookies
Deprecated.
(4.4) Use
IgnoreSpecProvider
.CookieSpecProvider
implementation that ignores all cookies.A collection of utilities relating to InetAddresses.
In-memory
DnsResolver
implementation.Factory for decorated
InputStream
s.Authentication credentials required to respond to a authentication
challenge are invalid
Deprecated.
(4.4) use standard
IDN
.Credentials
implementation based on GSSCredential for Kerberos Authentication.KERBEROS authentication scheme.
AuthSchemeProvider
implementation that creates and initializes
KerberosScheme
instances.Lax
RedirectStrategy
implementation
that automatically redirects all HEAD, GET, POST, and DELETE requests.Extended
ConnectionSocketFactory
interface for layered sockets such as SSL/TLS.Deprecated.
(4.2) use
SchemeLayeredSocketFactory
Deprecated.
(4.1) use
SchemeSocketFactory
Deprecated.
(4.3) no longer used.
Deprecated.
(4.3) no longer used.
The last request executor in the HTTP request execution chain
that is responsible for execution of request / response
exchanges with the opposite endpoint.
Signals that authentication challenge is in some way invalid or
illegal in the given context
Signals that a cookie is in some way invalid or illegal in a given
context
Deprecated.
(4.3) replaced by
HttpClientConnectionManager
.Represents a managed connection whose state and life cycle is managed by
a connection manager.
Factory for
ManagedHttpClientConnection
instances.Request executor that implements the most fundamental aspects of
the HTTP specification and the most straight-forward request / response
exchange with the target server.
Deprecated.
(4.1) Do not use.
Deprecated.
(4.2) use
SPNegoScheme
or KerberosScheme
.Deprecated.
(4.2) use
SPNegoSchemeFactory
or KerberosSchemeFactory
.This
CookieSpec
implementation conforms to
the original draft specification published by Netscape Communications.Deprecated.
(4.4) Use
NetscapeDraftSpecProvider
.CookieSpecProvider
implementation that provides an instance of
NetscapeDraftSpec
.Signals failure to retry the request due to non-repeatable request
entity.
The NO_OP HostnameVerifier essentially turns hostname verification
off.
Noop implementation of
UserTokenHandler
that always returns null
.Credentials
implementation for Microsoft Windows platforms that includes
Windows specific attributes such as name of the domain the user belongs to.Abstract NTLM authentication engine.
Signals NTLM protocol failure.
NTLM is a proprietary authentication scheme developed by Microsoft
and optimized for Windows platforms.
AuthSchemeProvider
implementation that creates and initializes
NTLMScheme
instances configured to use the default NTLMEngine
implementation.Microsoft Windows specific user principal implementation.
This is a
ConnectionBackoffStrategy
that never backs off,
for compatibility with existing behavior.Deprecated.
(4.3) replaced by
HttpClientConnectionManager
.The default class for creating plain (unencrypted) sockets.
Deprecated.
(4.3) use
PlainConnectionSocketFactory
Deprecated.
(4.2) use
Future
Deprecated.
(4.3) use
PoolingHttpClientConnectionManager
.ClientConnectionPoolManager
maintains a pool of
HttpClientConnection
s and is able to service connection requests
from multiple execution threads.Deprecated.
(4.4) use
PrivateKeyDetails
.Deprecated.
(4.4) use
PrivateKeyStrategy
.Request executor in the request execution chain that is responsible
for implementation of HTTP specification requirements.
Default
AuthenticationStrategy
implementation
for proxy host authentication.ProxyClient can be used to establish a tunnel via an HTTP proxy.
Deprecated.
(4.3) use
SystemDefaultRoutePlanner
Wraps a
CookieAttributeHandler
and leverages its match method
to never match a suffix from a black list.Deprecated.
(4.4) use
PublicSuffixDomainFilter
Public suffix is a set of DNS names or wildcards concatenated with dots.
Parses the list from publicsuffix.org
and configures a PublicSuffixFilter.
Deprecated.
(4.4) use
PublicSuffixListParser
.Utility class that can test if DNS names match the content of the Public Suffix List.
PublicSuffixMatcher
loader.Deprecated.
(4.4) use standard
IDN
.Signals violation of HTTP specification caused by an invalid redirect
Request executor in the request execution chain that is responsible
for handling of request redirects.
Deprecated.
(4.1) use
RedirectStrategy
This class represents a collection of
URI
s used
as redirect locations.A strategy for determining if an HTTP request should be redirected to
a new location in response to an HTTP response received from the target
server.
Signals that the request has been aborted.
Class responsible for handling Content Encoding requests in HTTP.
Request interceptor that matches cookies available in the current
CookieStore
to the request being executed and generates
corresponding Cookie
request headers.Request interceptor that can preemptively authenticate against known hosts,
if there is a cached
AuthScheme
instance in the local
AuthCache
associated with the given target or proxy host.Builder for
HttpUriRequest
instances.This protocol interceptor is responsible for adding
Connection
or Proxy-Connection
headers to the outgoing requests, which
is essential for managing persistence of HTTP/1.0
connections.Immutable class encapsulating request configuration items.
Request interceptor that adds default request headers.
Deprecated.
(4.3) No longer used
RequestExpectContinue is responsible for enabling the 'expect-continue'
handshake by adding
Expect
header.Deprecated.
(4.3) use
HttpAuthenticator
.Deprecated.
(4.3) use
HttpAuthenticator
.Deprecated.
(4.3) do not use.
Deprecated.
(4.2) use
AuthenticationStrategy
HttpResponseInterceptor
responsible for processing Content-Encoding
responses.Handler that encapsulates the process of generating a response object
from a
HttpResponse
.Response interceptor that populates the current
CookieStore
with data
contained in response cookies received in the given the HTTP response.Request executor in the request execution chain that is responsible
for making a decision whether a request failed due to an I/O error
should be re-executed.
RFC 2109 compliant
CookieSpec
implementation.Deprecated.
(4.4) Use
RFC2109SpecProvider
.CookieSpecProvider
implementation that provides an instance of
RFC2109Spec
.Abstract authentication scheme class that lays foundation for all
RFC 2617 compliant authentication schemes and provides capabilities common
to all authentication schemes defined in RFC 2617.
"CommentURL"
cookie attribute handler for RFC 2965 cookie spec."Discard"
cookie attribute handler for RFC 2965 cookie spec."Domain"
cookie attribute handler for RFC 2965 cookie spec."Port"
cookie attribute handler for RFC 2965 cookie spec.RFC 2965 compliant
CookieSpec
implementation.Deprecated.
(4.4) Use
RFC2965SpecProvider
.CookieSpecProvider
implementation that provides an instance of
RFC2965Spec
."Version"
cookie attribute handler for RFC 2965 cookie spec.Deprecated.
(4.4) use standard
IDN
.Cookie management functions shared by RFC C6265 compliant specification.
CookieSpecProvider
implementation that provides an instance of
RFC 6265 conformant cookie policy.Standard
CookieSpec
implementation that enforces a more relaxed
interpretation of the HTTP state management specification (RFC 6265, section 5)
for interoperability with existing servers that do not conform to the well behaved profile
(RFC 6265, section 4).Standard
CookieSpec
implementation that enforces syntax
and semantics of the well-behaved profile of the HTTP state management specification
(RFC 6265, section 4).Deprecated.
(4.3) do not use.
Read-only interface for route information.
The layering type of a route.
The tunnelling type of a route.
Deprecated.
(4.2) use
AbstractConnPool
Helps tracking the steps in establishing a route.
Deprecated.
(4.3) use
SchemePortResolver
for default port
resolution and Registry
for socket factory lookups.Deprecated.
(4.3) use
LayeredConnectionSocketFactory
Strategy for default port resolution for protocol schemes.
Deprecated.
(4.3) use
Registry
Deprecated.
(4.3) use
HttpClientBuilder
.Deprecated.
(4.3) use
ConnectionSocketFactory
Request executor in the request execution chain that is responsible
for making a decision whether a request that received a non-2xx response
from the target server should be re-executed.
Strategy interface that allows API users to plug in their own logic to
control whether or not a retry should automatically be done, how many times
it should be retried and so on.
This interface represents a
Set-Cookie
response header sent by the
origin server to the HTTP agent in order to maintain a conversational state.This interface represents a
Set-Cookie2
response header sent by the
origin server to the HTTP agent in order to maintain a conversational state.Deprecated.
(4.2) use
BasicClientConnectionManager
Constants and static helpers related to the HTTP state management.
Deprecated.
(4.1) use
SchemeSocketFactory
SPNEGO (Simple and Protected GSSAPI Negotiation Mechanism) authentication
scheme.
AuthSchemeProvider
implementation that creates and initializes
SPNegoScheme
instances.Deprecated.
(4.2) subclass
KerberosScheme
and override
GGSSchemeBase.generateGSSToken(byte[], org.ietf.jgss.Oid, String, org.apache.http.auth.Credentials)
Layered socket factory for TLS/SSL connections.
Deprecated.
(4.4) use
SSLContextBuilder
.Deprecated.
(4.4) use
SSLContexts
.Deprecated.
(4.3) use
SSLConnectionSocketFactory
.HttpRequestRetryHandler
which assumes
that all requested HTTP methods which should be idempotent according
to RFC-2616 are in fact idempotent and can be retried.Deprecated.
(4.4) Use
DefaultHostnameVerifier
Implementation of
CredentialsProvider
backed by standard
JRE Authenticator
.DNS resolver that uses the default OS implementation for resolving host names.
Deprecated.
(4.3) use
HttpClientBuilder
HttpRoutePlanner
implementation
based on ProxySelector
.Default
AuthenticationStrategy
implementation
for proxy host authentication.Deprecated.
(4.2) use
PoolingHttpClientConnectionManager
A trust strategy that accepts all certificates as trusted.
A trust strategy that accepts self-signed certificates as trusted.
A strategy to establish trustworthiness of certificates without consulting
the trust manager configured in the actual SSL context.
Deprecated.
(4.3) reserved for internal use.
Signals that the tunnel request was rejected by the proxy host.
Authentication credentials required to respond to a authentication
challenge are invalid
Signals failure to establish connection using an unknown protocol scheme.
Builder for
URI
instances.A collection of utilities for
URIs
, to workaround
bugs within the class or for ease-of-use features.Flags that control how URI is being rewritten.
An entity composed of a list of url-encoded pairs.
A collection of utilities for encoding URLs.
Simple
Credentials
implementation based on a user name / password
pair.A handler for determining if the given execution context is user specific
or not.
Deprecated.
(4.2) do not use
Deprecated.
(4.2) do not use
Logs data to the wire LOG.
Deprecated.
(4.4) Use
HostnameVerifier
.
HttpExecutionAware