Class TokenRequest

  • All Implemented Interfaces:
    java.lang.Comparable<com.android.volley.Request<org.json.JSONObject>>

    public class TokenRequest
    extends com.android.volley.toolbox.JsonObjectRequest
    Request to do a login request to the Gini User Center API in order to login the client.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.android.volley.Request

        com.android.volley.Request.Method, com.android.volley.Request.Priority
    • Field Summary

      • Fields inherited from class com.android.volley.toolbox.JsonRequest

        PROTOCOL_CHARSET
    • 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.String getBodyContentType()  
      java.util.Map<java.lang.String,​java.lang.String> getHeaders()  
      • Methods inherited from class com.android.volley.toolbox.JsonObjectRequest

        parseNetworkResponse
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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:
        getHeaders in class com.android.volley.Request<org.json.JSONObject>
        Throws:
        com.android.volley.AuthFailureError
      • getBodyContentType

        public java.lang.String getBodyContentType()
        Overrides:
        getBodyContentType in class com.android.volley.toolbox.JsonRequest<org.json.JSONObject>
      • getBody

        public byte[] getBody()
        Overrides:
        getBody in class com.android.volley.toolbox.JsonRequest<org.json.JSONObject>