AbstractHttpClient

Class of org.apache.http.impl.client · AbstractHttpClient.java

public abstract class AbstractHttpClient implements HttpClient

Android's legacy HTTP client over the JDK's HttpURLConnection, which keeps the connections, follows the redirects that the redirect handler asks for, and speaks TLS. The client runs its interceptors, its retry handler and its cookie store around each request, as Apache's does.

Extended in the framework by

Constructors

protected AbstractHttpClient(ClientConnectionManager conman, HttpParams params) source

Methods

protected abstract HttpParams createHttpParams() source
protected abstract ClientConnectionManager createClientConnectionManager() source
public final synchronized HttpParams getParams() source
public synchronized void setParams(HttpParams params) source
public final synchronized ClientConnectionManager getConnectionManager() source
public final synchronized CookieSpecRegistry getCookieSpecs() source
public synchronized void setCookieSpecs(CookieSpecRegistry cookieSpecRegistry) source
public final synchronized CookieStore getCookieStore() source
public synchronized void setCookieStore(CookieStore cookieStore) source
public final synchronized CredentialsProvider getCredentialsProvider() source
public synchronized void setCredentialsProvider(CredentialsProvider credsProvider) source
public final synchronized HttpRequestRetryHandler getHttpRequestRetryHandler() source
public synchronized void setHttpRequestRetryHandler(HttpRequestRetryHandler retryHandler) source
public final synchronized RedirectHandler getRedirectHandler() source
public synchronized void setRedirectHandler(RedirectHandler redirectHandler) source
public synchronized void addRequestInterceptor(HttpRequestInterceptor itcp) source
public synchronized void addRequestInterceptor(HttpRequestInterceptor itcp, int index) source
public synchronized void addResponseInterceptor(HttpResponseInterceptor itcp) source
public synchronized void addResponseInterceptor(HttpResponseInterceptor itcp, int index) source
public synchronized void clearRequestInterceptors() source
public synchronized void clearResponseInterceptors() source
public synchronized int getRequestInterceptorCount() source
public synchronized int getResponseInterceptorCount() source
public final HttpResponse execute(HttpUriRequest request) throws IOException source
public final HttpResponse execute(HttpHost target, HttpRequest request) throws IOException source
public final HttpResponse execute(HttpHost target, HttpRequest request, HttpContext context) throws IOException source
public <T> T execute(HttpUriRequest request, ResponseHandler<? extends T> responseHandler) throws IOException source
public <T> T execute(HttpUriRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context) throws IOException source
public final HttpResponse execute(HttpUriRequest request, HttpContext context) throws IOException source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.