com.android.volley
Class NetworkResponse

java.lang.Object
  extended by com.android.volley.NetworkResponse

public class NetworkResponse
extends Object

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

statusCode

public final int statusCode
The HTTP status code.


data

public final byte[] data
Raw data from this response.


headers

public final Map<String,String> headers
Response headers.


notModified

public final boolean notModified
True if the server returned a 304 (Not Modified).

Constructor Detail

NetworkResponse

public NetworkResponse(int statusCode,
                       byte[] data,
                       Map<String,String> headers,
                       boolean notModified)
Creates a new network response.

Parameters:
statusCode - the HTTP status code
data - Response body
headers - Headers returned with this response, or null for none
notModified - True if the server returned a 304 and the data was already in cache

NetworkResponse

public NetworkResponse(byte[] data)

NetworkResponse

public NetworkResponse(byte[] data,
                       Map<String,String> headers)