|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.volley.NetworkResponse
public class NetworkResponse
Data and headers returned from Network.performRequest(Request)
.
Field Summary | |
---|---|
byte[] |
data
Raw data from this response. |
Map<String,String> |
headers
Response headers. |
boolean |
notModified
True if the server returned a 304 (Not Modified). |
int |
statusCode
The HTTP status code. |
Constructor Summary | |
---|---|
NetworkResponse(byte[] data)
|
|
NetworkResponse(byte[] data,
Map<String,String> headers)
|
|
NetworkResponse(int statusCode,
byte[] data,
Map<String,String> headers,
boolean notModified)
Creates a new network response. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int statusCode
public final byte[] data
public final Map<String,String> headers
public final boolean notModified
Constructor Detail |
---|
public NetworkResponse(int statusCode, byte[] data, Map<String,String> headers, boolean notModified)
statusCode
- the HTTP status codedata
- Response bodyheaders
- Headers returned with this response, or null for nonenotModified
- True if the server returned a 304 and the data was already in cachepublic NetworkResponse(byte[] data)
public NetworkResponse(byte[] data, Map<String,String> headers)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |