Class TokenRequest
- java.lang.Object
-
- com.android.volley.Request<T>
-
- com.android.volley.toolbox.JsonRequest<org.json.JSONObject>
-
- com.android.volley.toolbox.JsonObjectRequest
-
- net.gini.android.authorization.requests.TokenRequest
-
- All Implemented Interfaces:
java.lang.Comparable<com.android.volley.Request<org.json.JSONObject>>
public class TokenRequest extends com.android.volley.toolbox.JsonObjectRequestRequest to do a login request to the Gini User Center API in order to login the client.
-
-
Constructor Summary
Constructors Constructor Description TokenRequest(java.lang.String clientId, java.lang.String clientSecret, java.lang.String url, java.util.Map<java.lang.String,java.lang.String> requestData, com.android.volley.Response.Listener<org.json.JSONObject> listener, com.android.volley.Response.ErrorListener errorListener, com.android.volley.RetryPolicy retryPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBody()java.lang.StringgetBodyContentType()java.util.Map<java.lang.String,java.lang.String>getHeaders()-
Methods inherited from class com.android.volley.toolbox.JsonRequest
cancel, deliverResponse, getPostBody, getPostBodyContentType
-
Methods inherited from class com.android.volley.Request
addMarker, compareTo, deliverError, getCacheEntry, getCacheKey, getErrorListener, getMethod, getParams, getParamsEncoding, getPostParams, getPostParamsEncoding, getPriority, getRetryPolicy, getSequence, getTag, getTimeoutMs, getTrafficStatsTag, getUrl, hasHadResponseDelivered, isCanceled, markDelivered, parseNetworkError, setCacheEntry, setRequestQueue, setRetryPolicy, setSequence, setShouldCache, setShouldRetryConnectionErrors, setShouldRetryServerErrors, setTag, shouldCache, shouldRetryConnectionErrors, shouldRetryServerErrors, toString
-
-
-
-
Constructor Detail
-
TokenRequest
public TokenRequest(java.lang.String clientId, java.lang.String clientSecret, java.lang.String url, @Nullable java.util.Map<java.lang.String,java.lang.String> requestData, com.android.volley.Response.Listener<org.json.JSONObject> listener, com.android.volley.Response.ErrorListener errorListener, com.android.volley.RetryPolicy retryPolicy)
-
-
Method Detail
-
getHeaders
public java.util.Map<java.lang.String,java.lang.String> getHeaders() throws com.android.volley.AuthFailureError- Overrides:
getHeadersin classcom.android.volley.Request<org.json.JSONObject>- Throws:
com.android.volley.AuthFailureError
-
getBodyContentType
public java.lang.String getBodyContentType()
- Overrides:
getBodyContentTypein classcom.android.volley.toolbox.JsonRequest<org.json.JSONObject>
-
getBody
public byte[] getBody()
- Overrides:
getBodyin classcom.android.volley.toolbox.JsonRequest<org.json.JSONObject>
-
-