T - the type of the valid content bodypublic abstract class ContentsResponse<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
abstract T |
getContent() |
ContentsBodyReader |
getContentsBodyReader() |
org.json.JSONObject |
getError()
Because of all API error responses are in JSON format the getError method always returns
an instance of
org.json.JSONObject. |
List<String> |
getHeader(String name) |
int |
getStatus() |
public abstract T getContent() throws IOException
IOException - if error occurs while parsing the response body as a type T instancepublic ContentsBodyReader getContentsBodyReader()
public org.json.JSONObject getError()
throws IOException
org.json.JSONObject.IOException - if error occurs while parsing the response body as a JSONObjectpublic int getStatus()
Copyright © 2019. All rights reserved.