@LevelUpApi(contract=PUBLIC) public class BufferedResponse extends AbstractResponse<String> implements Parcelable
AbstractResponse that uses a buffered interface where the response data is buffered in
 memory.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description | 
|---|---|
| static Parcelable.Creator<BufferedResponse> | CREATORCreator for parceling. | 
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description | 
|---|
| BufferedResponse(Parcel in)Constructor for parceling. | 
| BufferedResponse(String data) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | describeContents() | 
| String | getData() | 
| Exception | getError()Get the error that occurred during the sending of the request OR during the reading of the
 response. | 
| String | toString() | 
| void | writeToParcel(Parcel dest,
             int flags) | 
getHttpHeader, getHttpHeaders, getHttpStatusCodepublic static final Parcelable.Creator<BufferedResponse> CREATOR
public BufferedResponse(String data)
data - the string data (typically JSON) from the response from the server.public BufferedResponse(Parcel in)
in - the parcel to read from.public String getData()
getData in class AbstractResponse<String>public Exception getError()
getError in class AbstractResponse<String>public String toString()
toString in class AbstractResponse<String>public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelable