public class NativexJsonRequest
extends com.android.volley.toolbox.JsonObjectRequest
Modifier and Type | Field and Description |
---|---|
private static String |
ACCEPT
Accept type for request.
|
private static String |
ACCEPT_TYPE |
private Map<String,String> |
headers |
private com.android.volley.Request.Priority |
priority |
Constructor and Description |
---|
NativexJsonRequest(int method,
String url,
JSONObject jsonRequest,
com.android.volley.Response.Listener<JSONObject> listener,
com.android.volley.Response.ErrorListener errorListener) |
NativexJsonRequest(int method,
String url,
String jsonRequest,
com.android.volley.Response.Listener<JSONObject> listener,
com.android.volley.Response.ErrorListener errorListener) |
NativexJsonRequest(String url,
JSONObject jsonRequest,
com.android.volley.Response.Listener<JSONObject> listener,
com.android.volley.Response.ErrorListener errorListener) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getHeaders()
Returns a list of extra HTTP headers to go along with this request.
|
com.android.volley.Request.Priority |
getPriority()
Returns the
Request.Priority of this request; Request.Priority.NORMAL by default. |
void |
setHeader(String title,
String content) |
void |
setPriority(com.android.volley.Request.Priority priority) |
deliverResponse, getBody, getBodyContentType, getPostBody, getPostBodyContentType
addMarker, cancel, compareTo, deliverError, getCacheEntry, getCacheKey, getMethod, getParams, getParamsEncoding, getPostParams, getPostParamsEncoding, getRequestName, getRetryPolicy, getSequence, getTag, getTimeoutMs, getTrafficStatsTag, getUrl, hasHadResponseDelivered, isCanceled, isLoggingEnabled, markDelivered, parseNetworkError, postExecuteImmediatelyAfter, preExecuteJustBefore, setCacheEntry, setRequestName, setRequestQueue, setRetryPolicy, setSequence, setShouldCache, setTag, shouldCache, toString
private static final String ACCEPT
private static final String ACCEPT_TYPE
private com.android.volley.Request.Priority priority
public NativexJsonRequest(int method, String url, JSONObject jsonRequest, com.android.volley.Response.Listener<JSONObject> listener, com.android.volley.Response.ErrorListener errorListener)
public NativexJsonRequest(int method, String url, String jsonRequest, com.android.volley.Response.Listener<JSONObject> listener, com.android.volley.Response.ErrorListener errorListener)
public NativexJsonRequest(String url, JSONObject jsonRequest, com.android.volley.Response.Listener<JSONObject> listener, com.android.volley.Response.ErrorListener errorListener)
public Map<String,String> getHeaders() throws com.android.volley.AuthFailureError
com.android.volley.Request
AuthFailureError
as authentication may be required to
provide these values.getHeaders
in class com.android.volley.Request<JSONObject>
com.android.volley.AuthFailureError
- In the event of auth failurepublic void setPriority(com.android.volley.Request.Priority priority)
public com.android.volley.Request.Priority getPriority()
com.android.volley.Request
Request.Priority
of this request; Request.Priority.NORMAL
by default.getPriority
in class com.android.volley.Request<JSONObject>