public abstract class HttpClientBase extends Object implements HttpClient, Serializable
| Constructor and Description |
|---|
HttpClientBase(HttpClientConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultRequestHeader(String name,
String value) |
HttpResponse |
delete(String url) |
HttpResponse |
delete(String url,
HttpParameter[] parameters,
Authorization authorization,
HttpResponseListener listener) |
HttpResponse |
get(String url) |
HttpResponse |
get(String url,
HttpParameter[] parameters,
Authorization authorization,
HttpResponseListener listener) |
Map<String,String> |
getRequestHeaders() |
HttpResponse |
head(String url) |
HttpResponse |
post(String url) |
HttpResponse |
post(String url,
HttpParameter[] parameters,
Authorization authorization,
HttpResponseListener listener) |
HttpResponse |
put(String url) |
HttpResponse |
put(String url,
HttpParameter[] parameters,
Authorization authorization,
HttpResponseListener listener) |
HttpResponse |
request(HttpRequest req) |
HttpResponse |
request(HttpRequest req,
HttpResponseListener listener) |
void |
write(DataOutputStream out,
String outStr) |
public HttpClientBase(HttpClientConfiguration conf)
public void write(DataOutputStream out, String outStr) throws IOException
IOExceptionpublic Map<String,String> getRequestHeaders()
getRequestHeaders in interface HttpClientpublic void addDefaultRequestHeader(String name, String value)
addDefaultRequestHeader in interface HttpClientpublic final HttpResponse request(HttpRequest req) throws TwitterException
request in interface HttpClientTwitterExceptionpublic final HttpResponse request(HttpRequest req, HttpResponseListener listener) throws TwitterException
request in interface HttpClientTwitterExceptionpublic HttpResponse get(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener) throws TwitterException
get in interface HttpClientTwitterExceptionpublic HttpResponse get(String url) throws TwitterException
get in interface HttpClientTwitterExceptionpublic HttpResponse post(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener) throws TwitterException
post in interface HttpClientTwitterExceptionpublic HttpResponse post(String url) throws TwitterException
post in interface HttpClientTwitterExceptionpublic HttpResponse delete(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener) throws TwitterException
delete in interface HttpClientTwitterExceptionpublic HttpResponse delete(String url) throws TwitterException
delete in interface HttpClientTwitterExceptionpublic HttpResponse head(String url) throws TwitterException
head in interface HttpClientTwitterExceptionpublic HttpResponse put(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener) throws TwitterException
put in interface HttpClientTwitterExceptionpublic HttpResponse put(String url) throws TwitterException
put in interface HttpClientTwitterExceptionCopyright © 2018. All rights reserved.