public final class OkHttp3ClientExecutor extends Object implements ClientExecutor
OkHttpClient| Constructor and Description |
|---|
OkHttp3ClientExecutor(okhttp3.OkHttpClient client) |
| Modifier and Type | Method and Description |
|---|---|
String |
get(String url,
Map<String,Object> requestParameters)
Builds the final URL using the supplied url, appends query parameters and
executes the request
|
String |
post(String url,
Map<String,Object> formParams)
Builds the form body and executes the request
|
public String get(String url, Map<String,Object> requestParameters) throws ClientExecutorException
get in interface ClientExecutorurl - The request URLrequestParameters - The request parameters. Can be empty or nullClientExecutorException - Thrown if the API call unsuccessful or any other exception of the underlying client occuredpublic String post(String url, Map<String,Object> formParams) throws ClientExecutorException
post in interface ClientExecutorurl - The request URLformParams - The form body parameters. Can be empty or nullClientExecutorException - Thrown if the API call unsuccessful or any other exception of the underlying client occuredCopyright © 2017. All rights reserved.