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 から継承されたメソッド |
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 useurl
- URL to fetch the JSON fromjsonRequest
- 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 responseerrorListener
- 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)