com.android.volley.toolbox
クラス JsonRequest<T>

java.lang.Object
  上位を拡張 com.android.volley.Request<T>
      上位を拡張 com.android.volley.toolbox.JsonRequest<T>
型パラメータ:
T - JSON type of response expected
すべての実装されたインタフェース:
java.lang.Comparable<Request<T>>
直系の既知のサブクラス:
JsonArrayRequest, JsonObjectRequest

public abstract class JsonRequest<T>
extends Request<T>

A request for retrieving a T type response body at a given URL that also optionally sends along a JSON body in the request specified.


入れ子のクラスの概要
 
クラス com.android.volley.Request から継承された入れ子のクラス/インタフェース
Request.Method, Request.Priority
 
コンストラクタの概要
JsonRequest(int method, java.lang.String url, java.lang.String requestBody, Response.Listener<T> listener, Response.ErrorListener errorListener)
           
JsonRequest(java.lang.String url, java.lang.String requestBody, Response.Listener<T> listener, Response.ErrorListener errorListener)
          推奨されていません。 Use #JsonRequest(int, String, String, Listener, ErrorListener).
 
メソッドの概要
 byte[] getBody()
          Returns the raw POST or PUT body to be sent.
 java.lang.String getBodyContentType()
           
 byte[] getPostBody()
          推奨されていません。 Use getBody().
 java.lang.String getPostBodyContentType()
          推奨されていません。 Use getBodyContentType().
 
クラス com.android.volley.Request から継承されたメソッド
addMarker, cancel, compareTo, deliverError, getCacheEntry, getCacheKey, getHeaders, getMethod, getPriority, getRetryPolicy, getSequence, getTag, getTimeoutMs, getTrafficStatsTag, getUrl, hasHadResponseDelivered, isCanceled, markDelivered, setCacheEntry, setRequestQueue, setRetryPolicy, setSequence, setShouldCache, setTag, shouldCache, toString
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

JsonRequest

public JsonRequest(java.lang.String url,
                   java.lang.String requestBody,
                   Response.Listener<T> listener,
                   Response.ErrorListener errorListener)
推奨されていません。 Use #JsonRequest(int, String, String, Listener, ErrorListener).

Deprecated constructor for a JsonRequest which defaults to GET unless getPostBody() or Request.getPostParams() is overridden (which defaults to POST).


JsonRequest

public JsonRequest(int method,
                   java.lang.String url,
                   java.lang.String requestBody,
                   Response.Listener<T> listener,
                   Response.ErrorListener errorListener)
メソッドの詳細

getPostBodyContentType

public java.lang.String getPostBodyContentType()
推奨されていません。 Use getBodyContentType().

オーバーライド:
クラス Request<T> 内の getPostBodyContentType

getPostBody

public byte[] getPostBody()
推奨されていません。 Use getBody().

クラス Request の記述:
Returns the raw POST body to be sent.

オーバーライド:
クラス Request<T> 内の getPostBody

getBodyContentType

public java.lang.String getBodyContentType()
オーバーライド:
クラス Request<T> 内の getBodyContentType

getBody

public byte[] getBody()
クラス Request の記述:
Returns the raw POST or PUT body to be sent.

オーバーライド:
クラス Request<T> 内の getBody