A B C D F G H I J O P R S T U W 

A

addHeader(String, String) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
Add a header on the request, please note a null header key of a null header value will quietly be ignored from the final headers ensure that passe parameter is not null
AsyncHttpRequest - Class in com.github.leonardoxh.asyncokhttpclient
Handles the the messages for start/success/error/end of the incomming requests
AsyncHttpRequest(OkHttpClient, AsyncHttpResponse, RequestParams, RequestModel) - Constructor for class com.github.leonardoxh.asyncokhttpclient.AsyncHttpRequest
Constructs a new instance of AsyncHttpRequest
AsyncHttpResponse - Class in com.github.leonardoxh.asyncokhttpclient
Retrive the response from the HttpURLConnection and send it to the relative callback like onSuccess, onError
AsyncHttpResponse() - Constructor for class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
Construct a new instance of AsyncHttpResponse
AsyncOkHttpClient - Class in com.github.leonardoxh.asyncokhttpclient
Main class should be used to controll all the client
AsyncOkHttpClient() - Constructor for class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
 

B

ByteAsyncHttpResponse - Class in com.github.leonardoxh.asyncokhttpclient
Handle the HttpURLConnection response and parse it on a valid byte[] response
ByteAsyncHttpResponse() - Constructor for class com.github.leonardoxh.asyncokhttpclient.ByteAsyncHttpResponse
 

C

clear() - Method in class com.github.leonardoxh.asyncokhttpclient.RequestParams
Clear the parameter map
closeQuietly(Closeable) - Static method in class com.github.leonardoxh.asyncokhttpclient.utils.Util
Close any Closeable quietly if any exception is thrown simple ignore it
com.github.leonardoxh.asyncokhttpclient - package com.github.leonardoxh.asyncokhttpclient
 
com.github.leonardoxh.asyncokhttpclient.utils - package com.github.leonardoxh.asyncokhttpclient.utils
 

D

delete(String, RequestParams, AsyncHttpResponse) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
Execute a DELETE request
delete(String, AsyncHttpResponse) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
Execute a DELETE request
DELETE - Static variable in class com.github.leonardoxh.asyncokhttpclient.utils.RequestMethod
 
disconnect() - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpRequest
Disconnect the current request after send the end message

F

FAIL - Static variable in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
Indicate the response has failed
FAIL_BYTE_ARRAY - Static variable in class com.github.leonardoxh.asyncokhttpclient.ByteAsyncHttpResponse
Indicate the response as a fail byte array message
FAIL_JSON - Static variable in class com.github.leonardoxh.asyncokhttpclient.JsonAsyncHttpResponse
Indicate the response as a valid JSON and a fail message
FINISH - Static variable in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
Indicate the response has finished (after onSuccess or onError)

G

get(String, AsyncHttpResponse) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
Execute a GET request
get(String, RequestParams, AsyncHttpResponse) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
Execute a GET request
GET - Static variable in class com.github.leonardoxh.asyncokhttpclient.utils.RequestMethod
 
getOkHttpClient() - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
Return a instance used for the requests on this client
getParams() - Method in class com.github.leonardoxh.asyncokhttpclient.RequestParams
Return the encoded parameter of this request ready for HttpURLConnection set on OutputStream
getUrlWithQueryString(String, RequestParams) - Static method in class com.github.leonardoxh.asyncokhttpclient.utils.Util
Util for GET request method, convert the given RequestParams into a valid URL String query

H

handleErrorJsonMessage(Throwable, Object) - Method in class com.github.leonardoxh.asyncokhttpclient.JsonAsyncHttpResponse
Handle the error json message and call the onError callback
handleFailByteArrayMessage(Throwable, byte[]) - Method in class com.github.leonardoxh.asyncokhttpclient.ByteAsyncHttpResponse
Handle the error message and call the callback
handleFailMessage(Throwable, String) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
Handle the fail message and call the relative callback
handleMessage(Message) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
 
handleMessage(Message) - Method in class com.github.leonardoxh.asyncokhttpclient.ByteAsyncHttpResponse
 
handleMessage(Message) - Method in class com.github.leonardoxh.asyncokhttpclient.JsonAsyncHttpResponse
 
handleSuccessByteArrayMessage(int, byte[]) - Method in class com.github.leonardoxh.asyncokhttpclient.ByteAsyncHttpResponse
Handle the success message and call the callback
handleSuccessJsonMessage(int, Object) - Method in class com.github.leonardoxh.asyncokhttpclient.JsonAsyncHttpResponse
Handle the success json message and call the onSuccess callback or the onError
handleSuccessMessage(int, String) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpResponse
Handle the success message and call the relative callback

I

inputStreamToByteArray(InputStream) - Static method in class com.github.leonardoxh.asyncokhttpclient.utils.Util
Convert the given InputStream into a byte array this class is based o Apache IOUtils common so it can read more than 2GB with 4MB buffers
inputStreamToString(InputStream) - Static method in class com.github.leonardoxh.asyncokhttpclient.utils.Util
Convert the given InputStream to a String

J

JsonAsyncHttpResponse - Class in com.github.leonardoxh.asyncokhttpclient
This handles retrieve a message from the HttpURLConnection and parse it in a JSON
JsonAsyncHttpResponse() - Constructor for class com.github.leonardoxh.asyncokhttpclient.JsonAsyncHttpResponse
 

O

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

P

post(String, AsyncHttpResponse) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
Execute a POST request
post(String, RequestParams, AsyncHttpResponse) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
Execute a POST request
POST - Static variable in class com.github.leonardoxh.asyncokhttpclient.utils.RequestMethod
 
put(String, RequestParams, AsyncHttpResponse) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
Execute a PUT request
put(String, AsyncHttpResponse) - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncOkHttpClient
Execute a PUT request
put(Map<String, String>) - Method in class com.github.leonardoxh.asyncokhttpclient.RequestParams
Put multiple parameters on this parameters
put(String, String) - Method in class com.github.leonardoxh.asyncokhttpclient.RequestParams
Put the parameter on this params note if the parameter name is null or parameter value is null it will be siently omited from this parameters
PUT - Static variable in class com.github.leonardoxh.asyncokhttpclient.utils.RequestMethod
 

R

RequestMethod - Class in com.github.leonardoxh.asyncokhttpclient.utils
Class that hold the supported request methods on this library on the most use cases to be used with com.opens.asyncokhttpclient.RequestModel
RequestParams - Class in com.github.leonardoxh.asyncokhttpclient
Representation class for request parameters
RequestParams() - Constructor for class com.github.leonardoxh.asyncokhttpclient.RequestParams
 
run() - Method in class com.github.leonardoxh.asyncokhttpclient.AsyncHttpRequest
Run the current request yaaa!

S

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

T

toString() - Method in class com.github.leonardoxh.asyncokhttpclient.RequestParams
 

U

Util - Class in com.github.leonardoxh.asyncokhttpclient.utils
Utilitaries class, contains the common methods used to decode responses and another utils methods

W

writeTo(OutputStream) - Method in class com.github.leonardoxh.asyncokhttpclient.RequestParams
 
A B C D F G H I J O P R S T U W