public class AlternativeHttpClientImpl extends HttpClientBase implements HttpResponseCode, Serializable
| Modifier and Type | Field and Description |
|---|---|
static boolean |
sPreferHttp2 |
static boolean |
sPreferSpdy |
BAD_GATEWAY, BAD_REQUEST, ENHANCE_YOUR_CLAIM, FORBIDDEN, FOUND, GATEWAY_TIMEOUT, INTERNAL_SERVER_ERROR, MULTIPLE_CHOICES, NOT_ACCEPTABLE, NOT_FOUND, NOT_MODIFIED, OK, SERVICE_UNAVAILABLE, TOO_MANY_REQUESTS, UNAUTHORIZED, UNPROCESSABLE_ENTITY| Constructor and Description |
|---|
AlternativeHttpClientImpl() |
AlternativeHttpClientImpl(HttpClientConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
get(String arg0) |
static HttpClient |
getInstance(HttpClientConfiguration arg0) |
String |
getLastRequestProtocol() |
HttpResponse |
handleRequest(HttpRequest req) |
HttpResponse |
post(String arg0,
HttpParameter[] arg1) |
addDefaultRequestHeader, delete, delete, get, getRequestHeaders, head, post, post, put, put, request, request, writepublic static boolean sPreferSpdy
public static boolean sPreferHttp2
public AlternativeHttpClientImpl()
public AlternativeHttpClientImpl(HttpClientConfiguration conf)
public HttpResponse handleRequest(HttpRequest req) throws TwitterException
TwitterExceptionpublic String getLastRequestProtocol()
public static HttpClient getInstance(HttpClientConfiguration arg0)
public HttpResponse get(String arg0) throws TwitterException
get in interface HttpClientget in class HttpClientBaseTwitterExceptionpublic HttpResponse post(String arg0, HttpParameter[] arg1) throws TwitterException
TwitterExceptionCopyright © 2014. All Rights Reserved.