public class NativexJsonRequest
extends com.nativex.network.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.nativex.network.volley.Request.Priority |
priority |
| Constructor and Description |
|---|
NativexJsonRequest(int method,
String url,
JSONObject jsonRequest,
com.nativex.network.volley.Response.Listener<JSONObject> listener,
com.nativex.network.volley.Response.ErrorListener errorListener) |
NativexJsonRequest(int method,
String url,
String jsonRequest,
com.nativex.network.volley.Response.Listener<JSONObject> listener,
com.nativex.network.volley.Response.ErrorListener errorListener) |
NativexJsonRequest(String url,
JSONObject jsonRequest,
com.nativex.network.volley.Response.Listener<JSONObject> listener,
com.nativex.network.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.nativex.network.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.nativex.network.volley.Request.Priority priority) |
parseNetworkResponsedeliverResponse, getBody, getBodyContentType, getPostBody, getPostBodyContentTypeaddMarker, 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, toStringprivate static final String ACCEPT
private static final String ACCEPT_TYPE
private com.nativex.network.volley.Request.Priority priority
public NativexJsonRequest(int method,
String url,
JSONObject jsonRequest,
com.nativex.network.volley.Response.Listener<JSONObject> listener,
com.nativex.network.volley.Response.ErrorListener errorListener)
public NativexJsonRequest(int method,
String url,
String jsonRequest,
com.nativex.network.volley.Response.Listener<JSONObject> listener,
com.nativex.network.volley.Response.ErrorListener errorListener)
public NativexJsonRequest(String url, JSONObject jsonRequest, com.nativex.network.volley.Response.Listener<JSONObject> listener, com.nativex.network.volley.Response.ErrorListener errorListener)
public Map<String,String> getHeaders() throws com.nativex.network.volley.AuthFailureError
com.nativex.network.volley.RequestAuthFailureError as authentication may be required to
provide these values.getHeaders in class com.nativex.network.volley.Request<JSONObject>com.nativex.network.volley.AuthFailureError - In the event of auth failurepublic void setPriority(com.nativex.network.volley.Request.Priority priority)
public com.nativex.network.volley.Request.Priority getPriority()
com.nativex.network.volley.RequestRequest.Priority of this request; Request.Priority.NORMAL by default.getPriority in class com.nativex.network.volley.Request<JSONObject>