public class SyncHttpClient<E> extends Object
NetworkOnMainThreadException if ran on the UI thread.
Note: Because of the way SyncHttpClient works, only one instance can be created
at a time. If one client makes 2 requests, the first request is canceled for the new
request. You can either wait for the first to finish before making the second, or you
can create two separate instances.
Depends on
ResponseHandler, that
processor must also paramitized with the same type as the SyncHttpClient instance.
SyncHttpClientclient = new SyncHttpClient ("http://example.com"); List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new NameValuePair("key", "value")); JsonElement response = client.get("api/v1/", params, new JsonResponseHandler());
SyncHttpClientBecause of the nature of REST, GET and DELETE requests behave in the same way, POST and PUT requests also behave in the same way.client = new SyncHttpClient ("http://example.com"); List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new NameValuePair("key", "value")); JsonElement response = client.delete("api/v1/", params, new JsonResponseHandler());
| Modifier and Type | Field and Description |
|---|---|
static String |
userAgent
User agent to send with every request.
|
| Constructor and Description |
|---|
SyncHttpClient(String baseUrl)
Creates a new client using a base Url without a timeout
|
SyncHttpClient(String baseUrl,
long timeout)
Creates a new client using a base Url with a timeout in MS
|
SyncHttpClient(Uri baseUri)
Creates a new client using a base Uri without a timeout
|
SyncHttpClient(Uri baseUri,
long timeout)
Creates a new client using a base Uri with a timeout in MS
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the current executor task
|
E |
delete(okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
delete(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
delete(List<NameValuePair> params,
okhttp3.RequestBody deleteData,
ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
delete(List<NameValuePair> params,
ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
delete(okhttp3.RequestBody deleteData,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
delete(ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
delete(String path)
Performs a DELETE request on the baseUri
|
E |
delete(String path,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
delete(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
delete(String path,
List<NameValuePair> params,
okhttp3.RequestBody deleteData,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
delete(String path,
List<NameValuePair> params,
okhttp3.RequestBody deleteData,
ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
delete(String path,
List<NameValuePair> params,
ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
delete(String path,
okhttp3.RequestBody deleteData,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
delete(String path,
okhttp3.RequestBody deleteData,
ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
delete(String path,
ResponseHandler<?> response)
Performs a DELETE request on the baseUri
|
E |
get(okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a GET request on the baseUri
|
E |
get(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a GET request on the baseUri
|
E |
get(List<NameValuePair> params,
ResponseHandler<?> response)
Performs a GET request on the baseUri
|
E |
get(ResponseHandler<?> response)
Performs a GET request on the baseUri
|
E |
get(String path)
Performs a GET request on the baseUri
|
E |
get(String path,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a GET request on the baseUri
|
E |
get(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a GET request on the baseUri
|
E |
get(String path,
List<NameValuePair> params,
ResponseHandler<?> response)
Performs a GET request on the baseUri
|
E |
get(String path,
ResponseHandler<?> response)
Performs a GET request on the baseUri
|
ConnectionInfo |
getConnectionInfo()
Gets the connection info after a connection request has been made
|
E |
head(okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a HEAD request on the baseUri
|
E |
head(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a HEAD request on the baseUri
|
E |
head(List<NameValuePair> params,
ResponseHandler<?> response)
Performs a HEAD request on the baseUri
|
E |
head(ResponseHandler<?> response)
Performs a HEAD request on the baseUri
|
E |
head(String path)
Performs a HEAD request on the baseUri
|
E |
head(String path,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a HEAD request on the baseUri
|
E |
head(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a HEAD request on the baseUri
|
E |
head(String path,
List<NameValuePair> params,
ResponseHandler<?> response)
Performs a HEAD request on the baseUri
|
E |
head(String path,
ResponseHandler<?> response)
Performs a HEAD request on the baseUri
|
E |
options(okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a OPTIONS request on the baseUri
|
E |
options(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a OPTIONS request on the baseUri
|
E |
options(List<NameValuePair> params,
ResponseHandler<?> response)
Performs a OPTIONS request on the baseUri
|
E |
options(ResponseHandler<?> response)
Performs a OPTIONS request on the baseUri
|
E |
options(String path)
Performs a OPTIONS request on the baseUri
|
E |
options(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a OPTIONS request on the baseUri
|
E |
options(String path,
List<NameValuePair> params,
ResponseHandler<?> response)
Performs a OPTIONS request on the baseUri
|
E |
options(String path,
ResponseHandler<?> response)
Performs a OPTIONS request on the baseUri
|
E |
patch(okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PATCH request on the baseUri
|
E |
patch(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PATCH request on the baseUri
|
E |
patch(List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler<?> response)
Performs a PATCH request on the baseUri
|
E |
patch(List<NameValuePair> params,
ResponseHandler<?> response)
Performs a PATCH request on the baseUri
|
E |
patch(okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PATCH request on the baseUri
|
E |
patch(okhttp3.RequestBody postData,
ResponseHandler<?> response)
Performs a PATCH request on the baseUri
|
E |
patch(ResponseHandler<?> response)
Performs a PATCH request on the baseUr
|
E |
patch(String path)
Performs a PATCH request on the baseUr
|
E |
patch(String path,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PATCH request on the baseUri
|
E |
patch(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PATCH request on the baseUri
|
E |
patch(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PATCH request on the baseUri
|
E |
patch(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler<?> response)
Performs a PATCH request on the baseUri
|
E |
patch(String path,
List<NameValuePair> params,
ResponseHandler<?> response)
Performs a PATCH request on the baseUri
|
E |
patch(String path,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PATCH request on the baseUri
|
E |
patch(String path,
okhttp3.RequestBody postData,
ResponseHandler<?> response)
Performs a PATCH request on the baseUri
|
E |
patch(String path,
ResponseHandler<?> response)
Performs a PATCH request on the baseUr
|
E |
post(okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(List<NameValuePair> params,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(List<NameValuePair> params,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(okhttp3.RequestBody postData,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(String path)
Performs a POST request on the baseUr
|
E |
post(String path,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(String path,
List<NameValuePair> params,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(String path,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(String path,
okhttp3.RequestBody postData,
ResponseHandler<?> response)
Performs a POST request on the baseUri
|
E |
post(String path,
ResponseHandler<?> response)
Performs a POST request on the baseUr
|
E |
put(okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PUT request on the baseUri
|
E |
put(List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PUT request on the baseUri
|
E |
put(List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler<?> response)
Performs a PUT request on the baseUri
|
E |
put(List<NameValuePair> params,
ResponseHandler<?> response)
Performs a PUT request on the baseUri
|
E |
put(okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PUT request on the baseUri
|
E |
put(okhttp3.RequestBody postData,
ResponseHandler<?> response)
Performs a PUT request on the baseUri
|
E |
put(ResponseHandler<?> response)
Performs a PUT request on the baseUr
|
E |
put(String path)
Performs a PUT request on the baseUr
|
E |
put(String path,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PUT request on the baseUri
|
E |
put(String path,
List<NameValuePair> params,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PUT request on the baseUri
|
E |
put(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PUT request on the baseUri
|
E |
put(String path,
List<NameValuePair> params,
okhttp3.RequestBody postData,
ResponseHandler<?> response)
Performs a PUT request on the baseUri
|
E |
put(String path,
List<NameValuePair> params,
ResponseHandler<?> response)
Performs a PUT request on the baseUri
|
E |
put(String path,
okhttp3.RequestBody postData,
okhttp3.Headers headers,
ResponseHandler<?> response)
Performs a PUT request on the baseUri
|
E |
put(String path,
okhttp3.RequestBody postData,
ResponseHandler<?> response)
Performs a PUT request on the baseUri
|
E |
put(String path,
ResponseHandler<?> response)
Performs a PUT request on the baseUr
|
void |
setAllowAllSsl(boolean allow)
Sets to allow all SSL.
|
void |
setAllowRedirect(boolean allow)
Sets to auto redirect on 302 responses
|
public static String userAgent
RequestUtil.getDefaultUserAgent()public SyncHttpClient(String baseUrl)
baseUrl - The base connection urlpublic SyncHttpClient(Uri baseUri)
baseUri - The base connection uripublic SyncHttpClient(String baseUrl, long timeout)
baseUrl - The base connection urltimeout - The timeout in MSpublic SyncHttpClient(Uri baseUri, long timeout)
baseUri - The base connection uritimeout - The timeout in MSpublic void cancel()
@Nullable public E get(@NonNull ResponseHandler<?> response)
response - The response handler for the request@Nullable public E get(String path)
path - The path extended from the baseUri@Nullable public E get(String path, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriresponse - The response handler for the request@Nullable public E get(@Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
headers - The request headers for the connectionresponse - The response handler for the request@Nullable public E get(@Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriresponse - The response handler for the request@Nullable public E get(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E get(String path, @Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The request params for the connectionresponse - The response handler for the request@Nullable public E get(String path, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E get(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E options(@NonNull ResponseHandler<?> response)
response - The response handler for the requestpublic E options(String path)
path - The path extended from the baseUripublic E options(String path, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriresponse - The response handler for the request@Nullable public E options(@Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
headers - The request headers for the connectionresponse - The response handler for the request@Nullable public E options(@Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriresponse - The response handler for the request@Nullable public E options(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E options(String path, @Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The request params for the connectionresponse - The response handler for the request@Nullable public E options(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E head(@NonNull ResponseHandler<?> response)
response - The response handler for the request@Nullable public E head(String path)
path - The path extended from the baseUri@Nullable public E head(String path, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriresponse - The response handler for the request@Nullable public E head(@Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriresponse - The response handler for the request@Nullable public E head(@Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
headers - The request headers for the connectionresponse - The response handler for the request@Nullable public E head(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E head(String path, @Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The request params for the connectionresponse - The response handler for the request@Nullable public E head(String path, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E head(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E delete(@NonNull ResponseHandler<?> response)
response - The response handler for the requestpublic E delete(String path)
path - The path extended from the baseUri@Nullable public E delete(String path, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriresponse - The response handler for the request@Nullable public E delete(@Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
headers - The request headers for the connectionresponse - The response handler for the request@Nullable public E delete(@Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriresponse - The response handler for the request@Nullable public E delete(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E delete(String path, @Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The request params for the connectionresponse - The response handler for the request@Nullable public E delete(String path, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E delete(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E delete(@Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody deleteData, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUrideleteData - The delete data entity to delete to the serverresponse - The response handler for the request@Nullable public E delete(okhttp3.RequestBody deleteData, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
deleteData - The delete data entity to delete to the serverheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E delete(String path, @Nullable okhttp3.RequestBody deleteData, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUrideleteData - The delete data entity to delete to the serverresponse - The response handler for the request@Nullable public E delete(String path, @Nullable okhttp3.RequestBody deleteData, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUrideleteData - The delete data entity to delete to the serverheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E delete(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody deleteData, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUrideleteData - The delete data entity to delete to the serverresponse - The response handler for the request@Nullable public E delete(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody deleteData, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUrideleteData - The delete data entity to delete to the serverheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E post(@NonNull ResponseHandler<?> response)
response - The response handler for the request@Nullable public E post(String path)
path - The path extended from the baseUri@Nullable public E post(String path, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriresponse - The response handler for the request@Nullable public E post(@Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriresponse - The response handler for the request@Nullable public E post(@Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
headers - The request headers for the connectionresponse - The response handler for the request@Nullable public E post(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E post(okhttp3.RequestBody postData, @NonNull ResponseHandler<?> response)
postData - The post data entity to post to the serverresponse - The response handler for the request@Nullable public E post(okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
postData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E post(@Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the request@Nullable public E post(@Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E post(String path, @Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriresponse - The response handler for the request@Nullable public E post(String path, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E post(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E post(String path, @Nullable okhttp3.RequestBody postData, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUripostData - The post data entity to post to the serverresponse - The response handler for the request@Nullable public E post(String path, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E post(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the request@Nullable public E post(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E put(@NonNull ResponseHandler<?> response)
response - The response handler for the request@Nullable public E put(String path)
path - The path extended from the baseUri@Nullable public E put(String path, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriresponse - The response handler for the request@Nullable public E put(@Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriresponse - The response handler for the request@Nullable public E put(@Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
headers - The request headers for the connectionresponse - The response handler for the request@Nullable public E put(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E put(okhttp3.RequestBody postData, @NonNull ResponseHandler<?> response)
postData - The post data entity to post to the serverresponse - The response handler for the request@Nullable public E put(okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
postData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E put(@Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the request@Nullable public E put(String path, @Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriresponse - The response handler for the request@Nullable public E put(String path, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E put(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E put(String path, @Nullable okhttp3.RequestBody postData, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUripostData - The post data entity to post to the serverresponse - The response handler for the request@Nullable public E put(String path, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E put(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the request@Nullable public E put(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E patch(@NonNull ResponseHandler<?> response)
response - The response handler for the request@Nullable public E patch(String path)
path - The path extended from the baseUri@Nullable public E patch(String path, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriresponse - The response handler for the request@Nullable public E patch(@Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriresponse - The response handler for the request@Nullable public E patch(@Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
headers - The request headers for the connectionresponse - The response handler for the request@Nullable public E patch(@Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E patch(okhttp3.RequestBody postData, @NonNull ResponseHandler<?> response)
postData - The post data entity to post to the serverresponse - The response handler for the request@Nullable public E patch(okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
postData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E patch(@Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @NonNull ResponseHandler<?> response)
params - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the request@Nullable public E patch(String path, @Nullable List<NameValuePair> params, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriresponse - The response handler for the request@Nullable public E patch(String path, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E patch(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUriheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E patch(String path, @Nullable okhttp3.RequestBody postData, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUripostData - The post data entity to post to the serverresponse - The response handler for the request@Nullable public E patch(String path, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the request@Nullable public E patch(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverresponse - The response handler for the request@Nullable public E patch(String path, @Nullable List<NameValuePair> params, @Nullable okhttp3.RequestBody postData, @Nullable okhttp3.Headers headers, @NonNull ResponseHandler<?> response)
path - The path extended from the baseUriparams - The Query params to append to the baseUripostData - The post data entity to post to the serverheaders - The request headers for the connectionresponse - The response handler for the requestpublic void setAllowAllSsl(boolean allow)
allow - Allow all SSL true/falsepublic void setAllowRedirect(boolean allow)
allow - Allow redirect true/falsepublic ConnectionInfo getConnectionInfo()