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
IOException
public Map<String,String> getRequestHeaders()
getRequestHeaders
in interface HttpClient
public void addDefaultRequestHeader(String name, String value)
addDefaultRequestHeader
in interface HttpClient
public final HttpResponse request(HttpRequest req) throws TwitterException
request
in interface HttpClient
TwitterException
public final HttpResponse request(HttpRequest req, HttpResponseListener listener) throws TwitterException
request
in interface HttpClient
TwitterException
public HttpResponse get(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener) throws TwitterException
get
in interface HttpClient
TwitterException
public HttpResponse get(String url) throws TwitterException
get
in interface HttpClient
TwitterException
public HttpResponse post(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener) throws TwitterException
post
in interface HttpClient
TwitterException
public HttpResponse post(String url) throws TwitterException
post
in interface HttpClient
TwitterException
public HttpResponse delete(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener) throws TwitterException
delete
in interface HttpClient
TwitterException
public HttpResponse delete(String url) throws TwitterException
delete
in interface HttpClient
TwitterException
public HttpResponse head(String url) throws TwitterException
head
in interface HttpClient
TwitterException
public HttpResponse put(String url, HttpParameter[] parameters, Authorization authorization, HttpResponseListener listener) throws TwitterException
put
in interface HttpClient
TwitterException
public HttpResponse put(String url) throws TwitterException
put
in interface HttpClient
TwitterException
Copyright © 2018. All rights reserved.