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, write
public static boolean sPreferSpdy
public static boolean sPreferHttp2
public AlternativeHttpClientImpl()
public AlternativeHttpClientImpl(HttpClientConfiguration conf)
public HttpResponse handleRequest(HttpRequest req) throws TwitterException
TwitterException
public String getLastRequestProtocol()
public static HttpClient getInstance(HttpClientConfiguration arg0)
public HttpResponse get(String arg0) throws TwitterException
get
in interface HttpClient
get
in class HttpClientBase
TwitterException
public HttpResponse post(String arg0, HttpParameter[] arg1) throws TwitterException
TwitterException
Copyright © 2014. All Rights Reserved.