- obtainMessage(int, Object) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
-
Obtain a handler thread message to verify the results
this method will always return a valid message
- onError(Throwable, String) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
-
Callback that indicate the request has return error
- onError(Throwable, byte[]) - Method in class com.github.leonardoxh.asyncokhttpclient.ByteAsyncHttpResponse
-
Callback that indicate the response as finished with a fail
but have a valid byte array response
- onError(Throwable, JSONArray) - Method in class com.github.leonardoxh.asyncokhttpclient.JsonAsyncHttpResponse
-
Callback that indicate request has finished with a fail response
but a valid JSON body, this is util when you have a server that return a
valid JSON with the fail detail on the body but the response code >= 300
- onError(Throwable, JSONObject) - Method in class com.github.leonardoxh.asyncokhttpclient.JsonAsyncHttpResponse
-
Callback that indicate request has finished with a fail response
but a valid JSON body, this is util when you have a server that return a
valid JSON with the fail detail on the body but the response code >= 300
- onFinish() - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
-
Callback that indicate the request has finished
- onStart() - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
-
Callback that indicate the request has started
- onSuccess(int, String) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
-
Callback that indicate the request has
this method returns the content of the response
- onSuccess(int, byte[]) - Method in class com.github.leonardoxh.asyncokhttpclient.ByteAsyncHttpResponse
-
Callback that indicate the response as finished with success
- onSuccess(int, JSONObject) - Method in class com.github.leonardoxh.asyncokhttpclient.JsonAsyncHttpResponse
-
Callback that indicate request has finished success
and its a JSONObject
- onSuccess(int, JSONArray) - Method in class com.github.leonardoxh.asyncokhttpclient.JsonAsyncHttpResponse
-
Callback that indicate request has finished success
and its a JSONArray
- sendEndMessage() - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
-
Send the handle message that indicate the request has finished
- sendFailMessage(Throwable, String) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
-
Send the fail message to the handler
- sendFailMessage(Throwable, byte[]) - Method in class com.github.leonardoxh.asyncokhttpclient.ByteAsyncHttpResponse
-
Send a fail message to the handler
- sendFailMessage(Throwable, String) - Method in class com.github.leonardoxh.asyncokhttpclient.JsonAsyncHttpResponse
-
- sendMessage(Message) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
-
Send a message over the handler,
if the handler is null no problems it will recreate it
- sendRequest(OkHttpClient, String, AsyncHttpResponse, RequestParams, String) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
-
Send the specific request for the request response
- sendStartMessage() - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
-
Send the handle message that indicate the request has started
- sendSuccessMessage(int, String) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
-
Send the success message to the handler
- sendSuccessMessage(int, byte[]) - Method in class com.github.leonardoxh.asyncokhttpclient.ByteAsyncHttpResponse
-
Send a success byte array message to handler
- sendSuccessMessage(int, String) - Method in class com.github.leonardoxh.asyncokhttpclient.JsonAsyncHttpResponse
-
- setConnectionTimeut(long, TimeUnit) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
-
Set the connection timeout for the requests based on the time unit
0 means no timeout
- setReadTieout(long, TimeUnit) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
-
Set the read timeout for the requests based on the time unit
0 means no timeout
- setThreadPool(ThreadPoolExecutor) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
-
Set the executor to execute the requests
on the most use cases this is not necessary
but is a good choice for make unit tests
- START - Static variable in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
-
Indicate the response has started
- SUCCESS - Static variable in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
-
Indicate the response has finished with success
- SUCCESS_BYTE_ARRAY - Static variable in class com.github.leonardoxh.asyncokhttpclient.ByteAsyncHttpResponse
-
Indicate the response as a valid byte array message
- SUCCESS_JSON - Static variable in class com.github.leonardoxh.asyncokhttpclient.JsonAsyncHttpResponse
-
Indicate the response has a valid JSON and a success message