Package | Description |
---|---|
org.apache.http |
Core HTTP component APIs and primitives.
|
org.apache.http.auth |
Client HTTP authentication APIs.
|
org.apache.http.client |
Client HTTP communication APIs.
|
org.apache.http.client.config |
Client configuration APIs.
|
org.apache.http.client.methods |
Standard HTTP method implementations.
|
org.apache.http.client.params |
Deprecated.
|
org.apache.http.client.utils |
Client utility classes.
|
org.apache.http.conn |
Client connection management APIs.
|
org.apache.http.conn.params |
Deprecated.
|
org.apache.http.conn.routing |
Client connection routing APIs.
|
org.apache.http.conn.scheme |
Deprecated.
|
org.apache.http.conn.socket |
Client connection socket APIs.
|
org.apache.http.conn.ssl |
Client TLS/SSL support.
|
org.apache.http.impl.auth |
Default implementations of standard and common HTTP authentication
schemes.
|
org.apache.http.impl.client |
Default HTTP client implementation.
|
org.apache.http.impl.conn |
Default implementations of client connection management
functions.
|
org.apache.http.impl.pool |
Default implementations of client side connection pools
for synchronous, blocking communication.
|
org.apache.http.protocol |
Core HTTP protocol execution framework and HTTP protocol handlers
for synchronous, blocking communication.
|
Modifier and Type | Method and Description |
---|---|
static HttpHost |
HttpHost.create(java.lang.String s)
Creates
HttpHost instance from string. |
Constructor and Description |
---|
HttpHost(HttpHost httphost)
Copy constructor for
HttpHost . |
Modifier and Type | Method and Description |
---|---|
HttpHost |
AuthScope.getOrigin() |
Constructor and Description |
---|
AuthScope(HttpHost origin)
Defines auth scope for a specific host of origin.
|
AuthScope(HttpHost origin,
java.lang.String realm,
java.lang.String schemeName)
Defines auth scope for a specific host of origin.
|
Modifier and Type | Method and Description |
---|---|
void |
AuthenticationStrategy.authFailed(HttpHost authhost,
AuthScheme authScheme,
HttpContext context)
Callback invoked in case of unsuccessful authentication.
|
void |
AuthenticationStrategy.authSucceeded(HttpHost authhost,
AuthScheme authScheme,
HttpContext context)
Callback invoked in case of successful authentication.
|
HttpResponse |
HttpClient.execute(HttpHost target,
HttpRequest request)
Executes HTTP request using the default context.
|
HttpResponse |
RequestDirector.execute(HttpHost target,
HttpRequest request,
HttpContext context)
Deprecated.
Executes a request.
|
HttpResponse |
HttpClient.execute(HttpHost target,
HttpRequest request,
HttpContext context)
Executes HTTP request using the given context.
|
<T> T |
HttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler)
Executes HTTP request to the target using the default context and
processes the response using the given response handler.
|
<T> T |
HttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler,
HttpContext context)
Executes HTTP request to the target using the given context and
processes the response using the given response handler.
|
AuthScheme |
AuthCache.get(HttpHost host) |
java.util.Map<java.lang.String,Header> |
AuthenticationStrategy.getChallenges(HttpHost authhost,
HttpResponse response,
HttpContext context)
Extracts from the given HTTP response a collection of authentication
challenges, each of which represents an authentication scheme supported
by the authentication host.
|
boolean |
AuthenticationStrategy.isAuthenticationRequested(HttpHost authhost,
HttpResponse response,
HttpContext context)
Determines if the given HTTP response response represents
an authentication challenge that was sent back as a result
of authentication failure.
|
void |
AuthCache.put(HttpHost host,
AuthScheme authScheme) |
void |
AuthCache.remove(HttpHost host) |
java.util.Queue<AuthOption> |
AuthenticationStrategy.select(java.util.Map<java.lang.String,Header> challenges,
HttpHost authhost,
HttpResponse response,
HttpContext context)
Selects one authentication challenge out of all available and
creates and generates
AuthOption instance capable of
processing that challenge. |
Modifier and Type | Method and Description |
---|---|
HttpHost |
RequestConfig.getProxy()
Returns HTTP proxy to be used for request execution.
|
Modifier and Type | Method and Description |
---|---|
RequestConfig.Builder |
RequestConfig.Builder.setProxy(HttpHost proxy) |
Constructor and Description |
---|
RequestConfig(boolean expectContinueEnabled,
HttpHost proxy,
java.net.InetAddress localAddress,
boolean staleConnectionCheckEnabled,
java.lang.String cookieSpec,
boolean redirectsEnabled,
boolean relativeRedirectsAllowed,
boolean circularRedirectsAllowed,
int maxRedirects,
boolean authenticationEnabled,
java.util.Collection<java.lang.String> targetPreferredAuthSchemes,
java.util.Collection<java.lang.String> proxyPreferredAuthSchemes,
int connectionRequestTimeout,
int connectTimeout,
int socketTimeout,
boolean contentCompressionEnabled) |
Modifier and Type | Method and Description |
---|---|
HttpHost |
HttpRequestWrapper.getTarget() |
Modifier and Type | Method and Description |
---|---|
static HttpRequestWrapper |
HttpRequestWrapper.wrap(HttpRequest request,
HttpHost target)
Creates a mutable wrapper of the original request.
|
Constructor and Description |
---|
HttpRequestWrapper.HttpEntityEnclosingRequestWrapper(HttpEntityEnclosingRequest request,
HttpHost target) |
Modifier and Type | Method and Description |
---|---|
void |
ClientParamBean.setDefaultHost(HttpHost host)
Deprecated.
|
void |
ClientParamBean.setVirtualHost(HttpHost host)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static HttpHost |
URIUtils.extractHost(java.net.URI uri)
Extracts target host from the given
URI . |
Modifier and Type | Method and Description |
---|---|
static java.net.URI |
URIUtils.resolve(java.net.URI originalURI,
HttpHost target,
java.util.List<java.net.URI> redirects)
Derives the interpreted (absolute) URI that was used to generate the last
request.
|
static java.net.URI |
URIUtils.rewriteURI(java.net.URI uri,
HttpHost target)
A convenience method for
URIUtils.rewriteURI(URI, HttpHost, boolean) that always keeps the
fragment. |
static java.net.URI |
URIUtils.rewriteURI(java.net.URI uri,
HttpHost target,
boolean dropFragment)
A convenience method for creating a new
URI whose scheme, host
and port are taken from the target host, but whose path, query and
fragment are taken from the existing URI. |
Modifier and Type | Method and Description |
---|---|
HttpHost |
ConnectTimeoutException.getHost() |
HttpHost |
HttpHostConnectException.getHost() |
HttpHost |
HttpInetSocketAddress.getHttpHost()
Deprecated.
|
HttpHost |
OperatedClientConnection.getTargetHost()
Deprecated.
Obtains the target host for this connection.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpClientConnectionOperator.connect(ManagedHttpClientConnection conn,
HttpHost host,
java.net.InetSocketAddress localAddress,
int connectTimeout,
SocketConfig socketConfig,
HttpContext context) |
void |
ClientConnectionOperator.openConnection(OperatedClientConnection conn,
HttpHost target,
java.net.InetAddress local,
HttpContext context,
HttpParams params)
Deprecated.
Opens a connection to the given target host.
|
void |
OperatedClientConnection.opening(java.net.Socket sock,
HttpHost target)
Deprecated.
Signals that this connection is in the process of being open.
|
int |
SchemePortResolver.resolve(HttpHost host)
Returns the actual port for the host based on the protocol scheme.
|
void |
ManagedClientConnection.tunnelProxy(HttpHost next,
boolean secure,
HttpParams params)
Deprecated.
Indicates that a tunnel to an intermediate proxy has been established.
|
void |
OperatedClientConnection.update(java.net.Socket sock,
HttpHost target,
boolean secure,
HttpParams params)
Deprecated.
Updates this connection.
|
void |
ClientConnectionOperator.updateSecureConnection(OperatedClientConnection conn,
HttpHost target,
HttpContext context,
HttpParams params)
Deprecated.
Updates a connection with a layered secure connection.
|
void |
HttpClientConnectionOperator.upgrade(ManagedHttpClientConnection conn,
HttpHost host,
HttpContext context) |
Constructor and Description |
---|
ConnectTimeoutException(java.io.IOException cause,
HttpHost host,
java.net.InetAddress... remoteAddresses)
Creates a ConnectTimeoutException based on original
IOException . |
HttpHostConnectException(HttpHost host,
java.net.ConnectException cause)
|
HttpHostConnectException(java.io.IOException cause,
HttpHost host,
java.net.InetAddress... remoteAddresses)
Creates a HttpHostConnectException based on original
IOException . |
HttpInetSocketAddress(HttpHost httphost,
java.net.InetAddress addr,
int port)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static HttpHost |
ConnRouteParams.NO_HOST
Deprecated.
A special value indicating "no host".
|
Modifier and Type | Method and Description |
---|---|
static HttpHost |
ConnRouteParams.getDefaultProxy(HttpParams params)
Deprecated.
Obtains the
DEFAULT_PROXY
parameter value. |
Modifier and Type | Method and Description |
---|---|
void |
ConnRouteParamBean.setDefaultProxy(HttpHost defaultProxy)
Deprecated.
|
static void |
ConnRouteParams.setDefaultProxy(HttpParams params,
HttpHost proxy)
Deprecated.
Sets the
DEFAULT_PROXY
parameter value. |
Modifier and Type | Method and Description |
---|---|
HttpHost |
RouteInfo.getHopTarget(int hop)
Obtains the target of a hop in this route.
|
HttpHost |
HttpRoute.getHopTarget(int hop) |
HttpHost |
RouteTracker.getHopTarget(int hop) |
HttpHost |
RouteInfo.getProxyHost()
Obtains the first proxy host.
|
HttpHost |
HttpRoute.getProxyHost() |
HttpHost |
RouteTracker.getProxyHost() |
HttpHost |
RouteInfo.getTargetHost()
Obtains the target host.
|
HttpHost |
HttpRoute.getTargetHost() |
HttpHost |
RouteTracker.getTargetHost() |
Modifier and Type | Method and Description |
---|---|
void |
RouteTracker.connectProxy(HttpHost proxy,
boolean secure)
Tracks connecting to the first proxy.
|
HttpRoute |
HttpRoutePlanner.determineRoute(HttpHost target,
HttpRequest request,
HttpContext context)
Determines the route for a request.
|
void |
RouteTracker.tunnelProxy(HttpHost proxy,
boolean secure)
Tracks tunnelling to a proxy in a proxy chain.
|
Constructor and Description |
---|
HttpRoute(HttpHost target)
Creates a new direct insecure route.
|
HttpRoute(HttpHost target,
HttpHost proxy)
Creates a new plain route through a proxy.
|
HttpRoute(HttpHost target,
java.net.InetAddress local,
boolean secure)
Creates a new direct route.
|
HttpRoute(HttpHost target,
java.net.InetAddress local,
HttpHost[] proxies,
boolean secure,
RouteInfo.TunnelType tunnelled,
RouteInfo.LayerType layered)
Creates a new route with all attributes specified explicitly.
|
HttpRoute(HttpHost target,
java.net.InetAddress local,
HttpHost[] proxies,
boolean secure,
RouteInfo.TunnelType tunnelled,
RouteInfo.LayerType layered)
Creates a new route with all attributes specified explicitly.
|
HttpRoute(HttpHost target,
java.net.InetAddress local,
HttpHost proxy,
boolean secure)
Creates a new route through a proxy.
|
HttpRoute(HttpHost target,
java.net.InetAddress local,
HttpHost proxy,
boolean secure,
RouteInfo.TunnelType tunnelled,
RouteInfo.LayerType layered)
Creates a new route with at most one proxy.
|
RouteTracker(HttpHost target,
java.net.InetAddress local)
Creates a new route tracker.
|
Modifier and Type | Method and Description |
---|---|
Scheme |
SchemeRegistry.getScheme(HttpHost host)
Deprecated.
Obtains the scheme for a host.
|
Modifier and Type | Method and Description |
---|---|
java.net.Socket |
PlainConnectionSocketFactory.connectSocket(int connectTimeout,
java.net.Socket socket,
HttpHost host,
java.net.InetSocketAddress remoteAddress,
java.net.InetSocketAddress localAddress,
HttpContext context) |
java.net.Socket |
ConnectionSocketFactory.connectSocket(int connectTimeout,
java.net.Socket sock,
HttpHost host,
java.net.InetSocketAddress remoteAddress,
java.net.InetSocketAddress localAddress,
HttpContext context)
Connects the socket to the target host with the given resolved remote address.
|
Modifier and Type | Method and Description |
---|---|
java.net.Socket |
SSLSocketFactory.connectSocket(int connectTimeout,
java.net.Socket socket,
HttpHost host,
java.net.InetSocketAddress remoteAddress,
java.net.InetSocketAddress localAddress,
HttpContext context)
Deprecated.
|
java.net.Socket |
SSLConnectionSocketFactory.connectSocket(int connectTimeout,
java.net.Socket socket,
HttpHost host,
java.net.InetSocketAddress remoteAddress,
java.net.InetSocketAddress localAddress,
HttpContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
HttpAuthenticator.handleAuthChallenge(HttpHost host,
HttpResponse response,
AuthenticationStrategy authStrategy,
AuthState authState,
HttpContext context) |
boolean |
HttpAuthenticator.isAuthenticationRequested(HttpHost host,
HttpResponse response,
AuthenticationStrategy authStrategy,
AuthState authState,
HttpContext context) |
Modifier and Type | Method and Description |
---|---|
(package private) HttpHost |
DecompressingHttpClient.getHttpHost(HttpUriRequest request)
Deprecated.
|
protected HttpHost |
BasicAuthCache.getKey(HttpHost host) |
Modifier and Type | Method and Description |
---|---|
boolean |
HttpAuthenticator.authenticate(HttpHost host,
HttpResponse response,
AuthenticationStrategy authStrategy,
AuthState authState,
HttpContext context)
Deprecated.
|
void |
AuthenticationStrategyAdaptor.authFailed(HttpHost authhost,
AuthScheme authScheme,
HttpContext context)
Deprecated.
|
void |
AuthenticationStrategyImpl.authFailed(HttpHost authhost,
AuthScheme authScheme,
HttpContext context) |
void |
AuthenticationStrategyAdaptor.authSucceeded(HttpHost authhost,
AuthScheme authScheme,
HttpContext context)
Deprecated.
|
void |
AuthenticationStrategyImpl.authSucceeded(HttpHost authhost,
AuthScheme authScheme,
HttpContext context) |
protected HttpRoute |
DefaultRequestDirector.determineRoute(HttpHost targetHost,
HttpRequest request,
HttpContext context)
Deprecated.
Determines the route for a request.
|
protected CloseableHttpResponse |
AbstractHttpClient.doExecute(HttpHost target,
HttpRequest request,
HttpContext context)
Deprecated.
|
protected CloseableHttpResponse |
MinimalHttpClient.doExecute(HttpHost target,
HttpRequest request,
HttpContext context) |
protected CloseableHttpResponse |
InternalHttpClient.doExecute(HttpHost target,
HttpRequest request,
HttpContext context) |
protected abstract CloseableHttpResponse |
CloseableHttpClient.doExecute(HttpHost target,
HttpRequest request,
HttpContext context) |
HttpResponse |
AutoRetryHttpClient.execute(HttpHost target,
HttpRequest request)
Deprecated.
|
HttpResponse |
DecompressingHttpClient.execute(HttpHost target,
HttpRequest request)
Deprecated.
|
CloseableHttpResponse |
CloseableHttpClient.execute(HttpHost target,
HttpRequest request)
Executes HTTP request using the default context.
|
HttpResponse |
AutoRetryHttpClient.execute(HttpHost target,
HttpRequest request,
HttpContext context)
Deprecated.
|
HttpResponse |
DefaultRequestDirector.execute(HttpHost targetHost,
HttpRequest request,
HttpContext context)
Deprecated.
|
HttpResponse |
DecompressingHttpClient.execute(HttpHost target,
HttpRequest request,
HttpContext context)
Deprecated.
|
CloseableHttpResponse |
CloseableHttpClient.execute(HttpHost target,
HttpRequest request,
HttpContext context)
Executes HTTP request using the given context.
|
<T> T |
AutoRetryHttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler)
Deprecated.
|
<T> T |
DecompressingHttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler)
Deprecated.
|
<T> T |
CloseableHttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler)
Executes a request using the default context and processes the
response using the given response handler.
|
<T> T |
AutoRetryHttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler,
HttpContext context)
Deprecated.
|
<T> T |
DecompressingHttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler,
HttpContext context)
Deprecated.
|
<T> T |
CloseableHttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler,
HttpContext context)
Executes a request using the default context and processes the
response using the given response handler.
|
AuthScheme |
BasicAuthCache.get(HttpHost host) |
java.util.Map<java.lang.String,Header> |
AuthenticationStrategyAdaptor.getChallenges(HttpHost authhost,
HttpResponse response,
HttpContext context)
Deprecated.
|
java.util.Map<java.lang.String,Header> |
AuthenticationStrategyImpl.getChallenges(HttpHost authhost,
HttpResponse response,
HttpContext context)
Generates a map of challenge auth-scheme => Header entries.
|
protected HttpHost |
BasicAuthCache.getKey(HttpHost host) |
boolean |
AuthenticationStrategyAdaptor.isAuthenticationRequested(HttpHost authhost,
HttpResponse response,
HttpContext context)
Deprecated.
|
boolean |
AuthenticationStrategyImpl.isAuthenticationRequested(HttpHost authhost,
HttpResponse response,
HttpContext context) |
void |
BasicAuthCache.put(HttpHost host,
AuthScheme authScheme) |
void |
BasicAuthCache.remove(HttpHost host) |
java.util.Queue<AuthOption> |
AuthenticationStrategyAdaptor.select(java.util.Map<java.lang.String,Header> challenges,
HttpHost authhost,
HttpResponse response,
HttpContext context)
Deprecated.
|
java.util.Queue<AuthOption> |
AuthenticationStrategyImpl.select(java.util.Map<java.lang.String,Header> challenges,
HttpHost authhost,
HttpResponse response,
HttpContext context) |
HttpClientBuilder |
HttpClientBuilder.setProxy(HttpHost proxy)
Assigns default proxy value.
|
java.net.Socket |
ProxyClient.tunnel(HttpHost proxy,
HttpHost target,
Credentials credentials) |
Modifier and Type | Method and Description |
---|---|
protected HttpHost |
ProxySelectorRoutePlanner.determineProxy(HttpHost target,
HttpRequest request,
HttpContext context)
Deprecated.
Determines a proxy for the given target.
|
protected HttpHost |
DefaultProxyRoutePlanner.determineProxy(HttpHost target,
HttpRequest request,
HttpContext context) |
protected HttpHost |
DefaultRoutePlanner.determineProxy(HttpHost target,
HttpRequest request,
HttpContext context)
This implementation returns null.
|
protected HttpHost |
SystemDefaultRoutePlanner.determineProxy(HttpHost target,
HttpRequest request,
HttpContext context) |
HttpHost |
DefaultClientConnection.getTargetHost()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected java.net.Proxy |
ProxySelectorRoutePlanner.chooseProxy(java.util.List<java.net.Proxy> proxies,
HttpHost target,
HttpRequest request,
HttpContext context)
Deprecated.
Chooses a proxy from a list of available proxies.
|
void |
DefaultHttpClientConnectionOperator.connect(ManagedHttpClientConnection conn,
HttpHost host,
java.net.InetSocketAddress localAddress,
int connectTimeout,
SocketConfig socketConfig,
HttpContext context) |
protected HttpHost |
ProxySelectorRoutePlanner.determineProxy(HttpHost target,
HttpRequest request,
HttpContext context)
Deprecated.
Determines a proxy for the given target.
|
protected HttpHost |
DefaultProxyRoutePlanner.determineProxy(HttpHost target,
HttpRequest request,
HttpContext context) |
protected HttpHost |
DefaultRoutePlanner.determineProxy(HttpHost target,
HttpRequest request,
HttpContext context)
This implementation returns null.
|
protected HttpHost |
SystemDefaultRoutePlanner.determineProxy(HttpHost target,
HttpRequest request,
HttpContext context) |
HttpRoute |
DefaultHttpRoutePlanner.determineRoute(HttpHost target,
HttpRequest request,
HttpContext context)
Deprecated.
|
HttpRoute |
ProxySelectorRoutePlanner.determineRoute(HttpHost target,
HttpRequest request,
HttpContext context)
Deprecated.
|
HttpRoute |
DefaultRoutePlanner.determineRoute(HttpHost host,
HttpRequest request,
HttpContext context) |
ConnectionConfig |
PoolingHttpClientConnectionManager.getConnectionConfig(HttpHost host) |
ConnectionConfig |
PoolingHttpClientConnectionManager.ConfigData.getConnectionConfig(HttpHost host) |
SocketConfig |
PoolingHttpClientConnectionManager.getSocketConfig(HttpHost host) |
SocketConfig |
PoolingHttpClientConnectionManager.ConfigData.getSocketConfig(HttpHost host) |
void |
DefaultClientConnectionOperator.openConnection(OperatedClientConnection conn,
HttpHost target,
java.net.InetAddress local,
HttpContext context,
HttpParams params)
Deprecated.
|
void |
DefaultClientConnection.opening(java.net.Socket sock,
HttpHost target)
Deprecated.
|
int |
DefaultSchemePortResolver.resolve(HttpHost host) |
void |
PoolingHttpClientConnectionManager.setConnectionConfig(HttpHost host,
ConnectionConfig connectionConfig) |
void |
PoolingHttpClientConnectionManager.ConfigData.setConnectionConfig(HttpHost host,
ConnectionConfig connectionConfig) |
void |
PoolingHttpClientConnectionManager.setSocketConfig(HttpHost host,
SocketConfig socketConfig) |
void |
PoolingHttpClientConnectionManager.ConfigData.setSocketConfig(HttpHost host,
SocketConfig socketConfig) |
void |
AbstractPooledConnAdapter.tunnelProxy(HttpHost next,
boolean secure,
HttpParams params)
Deprecated.
|
void |
ManagedClientConnectionImpl.tunnelProxy(HttpHost next,
boolean secure,
HttpParams params)
Deprecated.
|
void |
AbstractPoolEntry.tunnelProxy(HttpHost next,
boolean secure,
HttpParams params)
Deprecated.
Tracks tunnelling of the connection to a chained proxy.
|
void |
DefaultClientConnection.update(java.net.Socket sock,
HttpHost target,
boolean secure,
HttpParams params)
Deprecated.
|
void |
DefaultClientConnectionOperator.updateSecureConnection(OperatedClientConnection conn,
HttpHost target,
HttpContext context,
HttpParams params)
Deprecated.
|
void |
DefaultHttpClientConnectionOperator.upgrade(ManagedHttpClientConnection conn,
HttpHost host,
HttpContext context) |
Constructor and Description |
---|
DefaultProxyRoutePlanner(HttpHost proxy) |
DefaultProxyRoutePlanner(HttpHost proxy,
SchemePortResolver schemePortResolver) |
Modifier and Type | Method and Description |
---|---|
HttpClientConnection |
BasicConnFactory.create(HttpHost host) |
protected BasicPoolEntry |
BasicConnPool.createEntry(HttpHost host,
HttpClientConnection conn) |
Constructor and Description |
---|
BasicPoolEntry(java.lang.String id,
HttpHost route,
HttpClientConnection conn) |
Constructor and Description |
---|
BasicConnPool(ConnFactory<HttpHost,HttpClientConnection> connFactory) |
Modifier and Type | Method and Description |
---|---|
HttpHost |
HttpCoreContext.getTargetHost() |
Modifier and Type | Method and Description |
---|---|
void |
HttpCoreContext.setTargetHost(HttpHost host) |