facebook4j.internal.http
Class HttpClientWrapper
java.lang.Object
facebook4j.internal.http.HttpClientWrapper
- All Implemented Interfaces:
- Serializable
public class HttpClientWrapper
- extends Object
- implements Serializable
HTTP Client wrapper with handy request methods, ResponseListener mechanism
- Author:
- Yusuke Yamamoto - yusuke at mac.com
- See Also:
- Serialized Form
|
Method Summary |
HttpResponse |
delete(String url)
|
HttpResponse |
delete(String url,
Authorization authorization)
|
HttpResponse |
delete(String url,
HttpParameter[] parameters)
|
HttpResponse |
delete(String url,
HttpParameter[] parameters,
Authorization authorization)
|
boolean |
equals(Object o)
|
HttpResponse |
get(String url)
|
HttpResponse |
get(String url,
Authorization authorization)
|
HttpResponse |
get(String url,
HttpParameter[] parameters)
|
HttpResponse |
get(String url,
HttpParameter[] parameters,
Authorization authorization)
|
int |
hashCode()
|
HttpResponse |
head(String url)
|
HttpResponse |
head(String url,
Authorization authorization)
|
HttpResponse |
head(String url,
HttpParameter[] parameters)
|
HttpResponse |
head(String url,
HttpParameter[] parameters,
Authorization authorization)
|
HttpResponse |
post(String url)
|
HttpResponse |
post(String url,
Authorization authorization)
|
HttpResponse |
post(String url,
HttpParameter[] parameters)
|
HttpResponse |
post(String url,
HttpParameter[] parameters,
Authorization authorization)
|
HttpResponse |
post(String url,
HttpParameter[] parameters,
Map<String,String> requestHeaders)
|
HttpResponse |
put(String url)
|
HttpResponse |
put(String url,
Authorization authorization)
|
HttpResponse |
put(String url,
HttpParameter[] parameters)
|
HttpResponse |
put(String url,
HttpParameter[] parameters,
Authorization authorization)
|
void |
setHttpResponseListener(HttpResponseListener listener)
|
void |
shutdown()
|
String |
toString()
|
HttpClientWrapper
public HttpClientWrapper(HttpClientWrapperConfiguration wrapperConf)
HttpClientWrapper
public HttpClientWrapper()
shutdown
public void shutdown()
setHttpResponseListener
public void setHttpResponseListener(HttpResponseListener listener)
get
public HttpResponse get(String url,
HttpParameter[] parameters,
Authorization authorization)
throws FacebookException
- Throws:
FacebookException
get
public HttpResponse get(String url,
HttpParameter[] parameters)
throws FacebookException
- Throws:
FacebookException
get
public HttpResponse get(String url,
Authorization authorization)
throws FacebookException
- Throws:
FacebookException
get
public HttpResponse get(String url)
throws FacebookException
- Throws:
FacebookException
post
public HttpResponse post(String url,
HttpParameter[] parameters,
Authorization authorization)
throws FacebookException
- Throws:
FacebookException
post
public HttpResponse post(String url,
HttpParameter[] parameters)
throws FacebookException
- Throws:
FacebookException
post
public HttpResponse post(String url,
HttpParameter[] parameters,
Map<String,String> requestHeaders)
throws FacebookException
- Throws:
FacebookException
post
public HttpResponse post(String url,
Authorization authorization)
throws FacebookException
- Throws:
FacebookException
post
public HttpResponse post(String url)
throws FacebookException
- Throws:
FacebookException
delete
public HttpResponse delete(String url,
HttpParameter[] parameters,
Authorization authorization)
throws FacebookException
- Throws:
FacebookException
delete
public HttpResponse delete(String url,
HttpParameter[] parameters)
throws FacebookException
- Throws:
FacebookException
delete
public HttpResponse delete(String url,
Authorization authorization)
throws FacebookException
- Throws:
FacebookException
delete
public HttpResponse delete(String url)
throws FacebookException
- Throws:
FacebookException
head
public HttpResponse head(String url,
HttpParameter[] parameters,
Authorization authorization)
throws FacebookException
- Throws:
FacebookException
head
public HttpResponse head(String url,
HttpParameter[] parameters)
throws FacebookException
- Throws:
FacebookException
head
public HttpResponse head(String url,
Authorization authorization)
throws FacebookException
- Throws:
FacebookException
head
public HttpResponse head(String url)
throws FacebookException
- Throws:
FacebookException
put
public HttpResponse put(String url,
HttpParameter[] parameters,
Authorization authorization)
throws FacebookException
- Throws:
FacebookException
put
public HttpResponse put(String url,
HttpParameter[] parameters)
throws FacebookException
- Throws:
FacebookException
put
public HttpResponse put(String url,
Authorization authorization)
throws FacebookException
- Throws:
FacebookException
put
public HttpResponse put(String url)
throws FacebookException
- Throws:
FacebookException
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014. All Rights Reserved.