|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfacebook4j.internal.http.HttpResponse
facebook4j.BatchResponseImpl
public class BatchResponseImpl
| Method Summary | |
|---|---|
facebook4j.internal.org.json.JSONArray |
asJSONArray()
Returns the response body as facebook4j.internal.org.json.JSONArray. Disconnects the internal HttpURLConnection silently. |
facebook4j.internal.org.json.JSONObject |
asJSONObject()
Returns the response body as facebook4j.internal.org.json.JSONObject. Disconnects the internal HttpURLConnection silently. |
Reader |
asReader()
|
ResponseList<facebook4j.internal.org.json.JSONObject> |
asResponseList()
|
InputStream |
asStream()
Returns the response stream. This method cannot be called after calling asString() or asDcoument() It is suggested to call disconnect() after consuming the stream. |
String |
asString()
Returns the response body as string. Disconnects the internal HttpURLConnection silently. |
void |
disconnect()
|
String |
getResponseHeader(String name)
|
Map<String,List<String>> |
getResponseHeaderFields()
|
String |
toString()
|
| Methods inherited from class facebook4j.internal.http.HttpResponse |
|---|
getStatusCode |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface facebook4j.BatchResponse |
|---|
getStatusCode |
| Method Detail |
|---|
public String getResponseHeader(String name)
getResponseHeader in interface BatchResponsegetResponseHeader in class facebook4j.internal.http.HttpResponsepublic Map<String,List<String>> getResponseHeaderFields()
getResponseHeaderFields in interface BatchResponsegetResponseHeaderFields in class facebook4j.internal.http.HttpResponse
public String asString()
throws FacebookException
facebook4j.internal.http.HttpResponse
asString in interface BatchResponseasString in class facebook4j.internal.http.HttpResponseFacebookException
public facebook4j.internal.org.json.JSONObject asJSONObject()
throws FacebookException
facebook4j.internal.http.HttpResponse
asJSONObject in interface BatchResponseasJSONObject in class facebook4j.internal.http.HttpResponseFacebookException
public ResponseList<facebook4j.internal.org.json.JSONObject> asResponseList()
throws FacebookException
asResponseList in interface BatchResponseFacebookException
public facebook4j.internal.org.json.JSONArray asJSONArray()
throws FacebookException
facebook4j.internal.http.HttpResponse
asJSONArray in interface BatchResponseasJSONArray in class facebook4j.internal.http.HttpResponseFacebookException
public void disconnect()
throws IOException
disconnect in class facebook4j.internal.http.HttpResponseIOExceptionpublic InputStream asStream()
facebook4j.internal.http.HttpResponse
asStream in class facebook4j.internal.http.HttpResponseHttpResponse.disconnect()public Reader asReader()
asReader in class facebook4j.internal.http.HttpResponsepublic String toString()
toString in class facebook4j.internal.http.HttpResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||