All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method and Description |
ApiClient |
addDefaultHeader(String key,
String value) |
com.squareup.okhttp.Call |
buildCall(String path,
String method,
List<Pair> queryParams,
Object body,
Map<String,String> headerParams,
Map<String,Object> formParams,
String[] authNames,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
com.squareup.okhttp.RequestBody |
buildRequestBodyFormEncoding(Map<String,Object> formParams) |
com.squareup.okhttp.RequestBody |
buildRequestBodyMultipart(Map<String,Object> formParams) |
String |
buildUrl(String path,
List<Pair> queryParams) |
<T> T |
deserialize(com.squareup.okhttp.Response response,
Type returnType) |
File |
downloadFileFromResponse(com.squareup.okhttp.Response response) |
String |
escapeString(String str) |
<T> ApiResponse<T> |
execute(com.squareup.okhttp.Call call) |
<T> ApiResponse<T> |
execute(com.squareup.okhttp.Call call,
Type returnType) |
<T> void |
executeAsync(com.squareup.okhttp.Call call,
ApiCallback<T> callback) |
<T> void |
executeAsync(com.squareup.okhttp.Call call,
Type returnType,
ApiCallback<T> callback) |
String |
formatDate(Date date) |
String |
formatDatetime(Date date) |
Authentication |
getAuthentication(String authName) |
Map<String,Authentication> |
getAuthentications() |
String |
getBasePath() |
int |
getConnectTimeout() |
DateFormat |
getDateFormat() |
DateFormat |
getDatetimeFormat() |
com.squareup.okhttp.OkHttpClient |
getHttpClient() |
JSON |
getJSON() |
InputStream |
getSslCaCert() |
String |
getTempFolderPath() |
String |
guessContentTypeFromFile(File file) |
<T> T |
handleResponse(com.squareup.okhttp.Response response,
Type returnType) |
boolean |
isDebugging() |
boolean |
isJsonMime(String mime) |
boolean |
isLenientDatetimeFormat() |
boolean |
isLenientOnJson() |
boolean |
isVerifyingSsl() |
List<Pair> |
parameterToPairs(String collectionFormat,
String name,
Object value) |
String |
parameterToString(Object param) |
Date |
parseDate(String str) |
Date |
parseDateOrDatetime(String str) |
Date |
parseDatetime(String str) |
File |
prepareDownloadFile(com.squareup.okhttp.Response response) |
void |
processHeaderParams(Map<String,String> headerParams,
com.squareup.okhttp.Request.Builder reqBuilder) |
String |
sanitizeFilename(String filename) |
String |
selectHeaderAccept(String[] accepts) |
String |
selectHeaderContentType(String[] contentTypes) |
com.squareup.okhttp.RequestBody |
serialize(Object obj,
String contentType) |
void |
setAccessToken(String accessToken) |
void |
setApiKey(String apiKey) |
void |
setApiKeyPrefix(String apiKeyPrefix) |
ApiClient |
setBasePath(String basePath) |
ApiClient |
setConnectTimeout(int connectionTimeout) |
ApiClient |
setDateFormat(DateFormat dateFormat) |
ApiClient |
setDatetimeFormat(DateFormat datetimeFormat) |
ApiClient |
setDebugging(boolean debugging) |
ApiClient |
setHttpClient(com.squareup.okhttp.OkHttpClient httpClient) |
ApiClient |
setJSON(JSON json) |
ApiClient |
setLenientDatetimeFormat(boolean lenientDatetimeFormat) |
ApiClient |
setLenientOnJson(boolean lenient) |
void |
setPassword(String password) |
ApiClient |
setSslCaCert(InputStream sslCaCert) |
ApiClient |
setTempFolderPath(String tempFolderPath) |
ApiClient |
setUserAgent(String userAgent) |
void |
setUsername(String username) |
ApiClient |
setVerifyingSsl(boolean verifyingSsl) |
void |
updateParamsForAuth(String[] authNames,
List<Pair> queryParams,
Map<String,String> headerParams) |