public class HttpClientImpl extends HttpClientBase implements HttpResponseCode, java.io.Serializable
CONFBAD_GATEWAY, BAD_REQUEST, ENHANCE_YOUR_CLAIM, FORBIDDEN, FOUND, GATEWAY_TIMEOUT, INTERNAL_SERVER_ERROR, MULTIPLE_CHOICES, NOT_ACCEPTABLE, NOT_FOUND, NOT_MODIFIED, OK, RESUME_INCOMPLETE, SERVICE_UNAVAILABLE, TOO_MANY_REQUESTS, UNAUTHORIZED, UNPROCESSABLE_ENTITY| Constructor and Description |
|---|
HttpClientImpl() |
HttpClientImpl(HttpClientConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
get(java.lang.String url) |
protected java.net.HttpURLConnection |
getConnection(java.lang.String url) |
static HttpClient |
getInstance(HttpClientConfiguration conf) |
HttpResponse |
post(java.lang.String url,
HttpParameter[] params) |
HttpResponse |
post(java.lang.String url,
java.lang.String requestBody) |
HttpResponse |
request(HttpRequest req) |
equals, hashCode, isProxyConfigured, shutdown, toString, writepublic HttpClientImpl()
public HttpClientImpl(HttpClientConfiguration conf)
public static HttpClient getInstance(HttpClientConfiguration conf)
public HttpResponse get(java.lang.String url) throws TwitterException
TwitterExceptionpublic HttpResponse post(java.lang.String url, HttpParameter[] params) throws TwitterException
TwitterExceptionpublic HttpResponse post(java.lang.String url, java.lang.String requestBody) throws TwitterException
TwitterExceptionpublic HttpResponse request(HttpRequest req) throws TwitterException
request in interface HttpClientTwitterExceptionprotected java.net.HttpURLConnection getConnection(java.lang.String url)
throws java.io.IOException
java.io.IOException