public class TokenRequest extends StringRequest
Request.Method, Request.Priority| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
key |
protected java.lang.String |
secret |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Returns a list of extra HTTP headers to go along with this request.
|
protected java.util.Map<java.lang.String,java.lang.String> |
getParams()
Returns a Map of parameters to be used for a POST or PUT request.
|
deliverResponse, parseNetworkResponseaddMarker, cancel, compareTo, deliverError, finish, getBody, getBodyContentType, getCacheEntry, getCacheKey, getErrorListener, getMethod, getParamsEncoding, getPostBody, getPostBodyContentType, getPostParams, getPostParamsEncoding, getPriority, getRetryPolicy, getSequence, getTag, getTimeoutMs, getTrafficStatsTag, getUrl, hasHadResponseDelivered, isCanceled, markDelivered, parseNetworkError, setCacheEntry, setRequestQueue, setRetryPolicy, setSequence, setShouldCache, setTag, shouldCache, toStringprotected final java.lang.String key
protected final java.lang.String secret
protected java.util.Map<java.lang.String,java.lang.String> getParams()
throws AuthFailureError
RequestAuthFailureError as authentication may be required to provide these values.
Note that you can directly override Request.getBody() for custom data.
getParams in class Request<java.lang.String>AuthFailureError - in the event of auth failurepublic java.util.Map<java.lang.String,java.lang.String> getHeaders()
throws AuthFailureError
RequestAuthFailureError as authentication may be required to
provide these values.getHeaders in class Request<java.lang.String>AuthFailureError - In the event of auth failure