|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object facebook4j.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 BatchResponse
getResponseHeader
in class facebook4j.internal.http.HttpResponse
public Map<String,List<String>> getResponseHeaderFields()
getResponseHeaderFields
in interface BatchResponse
getResponseHeaderFields
in class facebook4j.internal.http.HttpResponse
public String asString() throws FacebookException
facebook4j.internal.http.HttpResponse
asString
in interface BatchResponse
asString
in class facebook4j.internal.http.HttpResponse
FacebookException
public facebook4j.internal.org.json.JSONObject asJSONObject() throws FacebookException
facebook4j.internal.http.HttpResponse
asJSONObject
in interface BatchResponse
asJSONObject
in class facebook4j.internal.http.HttpResponse
FacebookException
public ResponseList<facebook4j.internal.org.json.JSONObject> asResponseList() throws FacebookException
asResponseList
in interface BatchResponse
FacebookException
public facebook4j.internal.org.json.JSONArray asJSONArray() throws FacebookException
facebook4j.internal.http.HttpResponse
asJSONArray
in interface BatchResponse
asJSONArray
in class facebook4j.internal.http.HttpResponse
FacebookException
public void disconnect() throws IOException
disconnect
in class facebook4j.internal.http.HttpResponse
IOException
public InputStream asStream()
facebook4j.internal.http.HttpResponse
asStream
in class facebook4j.internal.http.HttpResponse
HttpResponse.disconnect()
public Reader asReader()
asReader
in class facebook4j.internal.http.HttpResponse
public 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 |