com.android.volley.toolbox
クラス JsonObjectRequest

java.lang.Object
  上位を拡張 com.android.volley.Request<T>
      上位を拡張 com.android.volley.toolbox.JsonRequest<JSONObject>
          上位を拡張 com.android.volley.toolbox.JsonObjectRequest
すべての実装されたインタフェース:
java.lang.Comparable<Request<JSONObject>>

public class JsonObjectRequest
extends JsonRequest<JSONObject>

A request for retrieving a JSONObject response body at a given URL, allowing for an optional JSONObject to be passed in as part of the request body.


入れ子のクラスの概要
 
クラス com.android.volley.Request から継承された入れ子のクラス/インタフェース
Request.Method, Request.Priority
 
コンストラクタの概要
JsonObjectRequest(int method, java.lang.String url, JSONObject jsonRequest, Response.Listener<JSONObject> listener, Response.ErrorListener errorListener)
          Creates a new request.
JsonObjectRequest(java.lang.String url, JSONObject jsonRequest, Response.Listener<JSONObject> listener, Response.ErrorListener errorListener)
          Constructor which defaults to GET if jsonRequest is null, POST otherwise.
 
メソッドの概要
 
クラス com.android.volley.toolbox.JsonRequest から継承されたメソッド
getBody, getBodyContentType, getPostBody, getPostBodyContentType
 
クラス 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
 

コンストラクタの詳細

JsonObjectRequest

public JsonObjectRequest(int method,
                         java.lang.String url,
                         JSONObject jsonRequest,
                         Response.Listener<JSONObject> listener,
                         Response.ErrorListener errorListener)
Creates a new request.

パラメータ:
method - the HTTP method to use
url - URL to fetch the JSON from
jsonRequest - A JSONObject to post with the request. Null is allowed and indicates no parameters will be posted along with request.
listener - Listener to receive the JSON response
errorListener - Error listener, or null to ignore errors.

JsonObjectRequest

public JsonObjectRequest(java.lang.String url,
                         JSONObject jsonRequest,
                         Response.Listener<JSONObject> listener,
                         Response.ErrorListener errorListener)
Constructor which defaults to GET if jsonRequest is null, POST otherwise.

関連項目:
#JsonObjectRequest(int, String, JSONObject, Listener, ErrorListener)