Top Description Interfaces Classes
[default module]

Package org.apache.hc.client5.http


Client component APIs common to all client transports such as connection route information and resolution as well as common HTTP method definitions and exception classes.

Interface Summary

Modifier and TypeInterface and Description
public interface
AuthenticationStrategy

Strategy to select auth schemes in order of preference based on auth challenges presented by the opposite endpoint (target server or a proxy).

public interface
ConnectionKeepAliveStrategy

Interface for deciding how long a connection can remain idle before being reused.

public interface
DnsResolver

Users may implement this interface to override the normal DNS lookup offered by the OS.

public interface
HttpRequestRetryStrategy

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 done and so on.

public interface
RouteInfo

Connection route information.

public interface
SchemePortResolver

Strategy for default port resolution for protocol schemes.

public interface
UserTokenHandler

A handler for determining if the given execution context is user specific or not.

Class Summary

Modifier and TypeClass and Description
public class
CircularRedirectException

Signals a circular redirect

public class
ClientProtocolException

Signals an error in the HTTP protocol.

public class
ConnectExceptionSupport

Connect exception support methods.

public class
ConnectTimeoutException

A timeout while connecting to an HTTP server or waiting for an available connection from a connection manager.

public class
public class
HttpHostConnectException

A ConnectException that specifies the NamedEndpoint that was being connected to.

public class
HttpResponseException

Signals a non 2xx HTTP response.

public class
HttpRoute

Connection route definition for HTTP requests.

public class
RedirectException

Signals violation of HTTP specification caused by an invalid redirect

public class
RouteTracker

Helps tracking the steps in establishing a route.

public class
SystemDefaultDnsResolver

DNS resolver that uses the default OS implementation for resolving host names.

public class
UnsupportedSchemeException

Signals failure to establish connection using an unknown protocol scheme.