HttpClient
in an upcoming
release. Applications that need this should either downgrade to the Apache implementation or
upgrade to OkHttp's Request/Response API.public final class OkApacheClient extends Object implements org.apache.http.client.HttpClient
Constructor and Description |
---|
OkApacheClient()
Deprecated.
|
OkApacheClient(OkHttpClient client)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.apache.http.HttpResponse |
execute(org.apache.http.HttpHost host,
org.apache.http.HttpRequest request)
Deprecated.
|
org.apache.http.HttpResponse |
execute(org.apache.http.HttpHost host,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
<T> T |
execute(org.apache.http.HttpHost host,
org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<? extends T> handler)
Deprecated.
|
<T> T |
execute(org.apache.http.HttpHost host,
org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<? extends T> handler,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest request)
Deprecated.
|
org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
<T> T |
execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.client.ResponseHandler<? extends T> handler)
Deprecated.
|
<T> T |
execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.client.ResponseHandler<? extends T> handler,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
org.apache.http.conn.ClientConnectionManager |
getConnectionManager()
Deprecated.
|
org.apache.http.params.HttpParams |
getParams()
Deprecated.
|
public OkApacheClient()
public OkApacheClient(OkHttpClient client)
public org.apache.http.params.HttpParams getParams()
getParams
in interface org.apache.http.client.HttpClient
public org.apache.http.conn.ClientConnectionManager getConnectionManager()
getConnectionManager
in interface org.apache.http.client.HttpClient
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request) throws IOException
execute
in interface org.apache.http.client.HttpClient
IOException
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.protocol.HttpContext context) throws IOException
execute
in interface org.apache.http.client.HttpClient
IOException
public org.apache.http.HttpResponse execute(org.apache.http.HttpHost host, org.apache.http.HttpRequest request) throws IOException
execute
in interface org.apache.http.client.HttpClient
IOException
public org.apache.http.HttpResponse execute(org.apache.http.HttpHost host, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws IOException
execute
in interface org.apache.http.client.HttpClient
IOException
public <T> T execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> handler) throws IOException
execute
in interface org.apache.http.client.HttpClient
IOException
public <T> T execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> handler, org.apache.http.protocol.HttpContext context) throws IOException
execute
in interface org.apache.http.client.HttpClient
IOException
public <T> T execute(org.apache.http.HttpHost host, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> handler) throws IOException
execute
in interface org.apache.http.client.HttpClient
IOException
public <T> T execute(org.apache.http.HttpHost host, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> handler, org.apache.http.protocol.HttpContext context) throws IOException
execute
in interface org.apache.http.client.HttpClient
IOException
Copyright © 2019. All rights reserved.