com.android.volley
クラス NetworkResponse

java.lang.Object
  上位を拡張 com.android.volley.NetworkResponse

public class NetworkResponse
extends java.lang.Object

Data and headers returned from Network.performRequest(Request).


フィールドの概要
 byte[] data
          Raw data from this response.
 java.util.Map<java.lang.String,java.lang.String> headers
          Response headers.
 boolean notModified
          True if the server returned a 304 (Not Modified).
 int statusCode
          The HTTP status code.
 
コンストラクタの概要
NetworkResponse(byte[] data)
           
NetworkResponse(byte[] data, java.util.Map<java.lang.String,java.lang.String> headers)
           
NetworkResponse(int statusCode, byte[] data, java.util.Map<java.lang.String,java.lang.String> headers, boolean notModified)
          Creates a new network response.
 
メソッドの概要
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

statusCode

public final int statusCode
The HTTP status code.


data

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


headers

public final java.util.Map<java.lang.String,java.lang.String> headers
Response headers.


notModified

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

コンストラクタの詳細

NetworkResponse

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

パラメータ:
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,
                       java.util.Map<java.lang.String,java.lang.String> headers)