public static class APIRequest.RequestHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
fileToContentTypeMap |
| Constructor and Description |
|---|
RequestHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
constructUrlString(String apiUrl,
Map<String,Object> allParams) |
static int |
getContentLength(Map<String,Object> allParams,
String boundary,
APIContext context) |
static String |
getContentTypeForFile(File file) |
static com.google.common.util.concurrent.ListenableFuture<APIRequest.ResponseWrapper> |
invoke(okhttp3.OkHttpClient client,
okhttp3.Request request) |
public static int getContentLength(Map<String,Object> allParams, String boundary, APIContext context) throws IOException
IOExceptionpublic static String constructUrlString(String apiUrl, Map<String,Object> allParams) throws IOException
IOExceptionpublic static com.google.common.util.concurrent.ListenableFuture<APIRequest.ResponseWrapper> invoke(okhttp3.OkHttpClient client, okhttp3.Request request)
Copyright © 2020. All rights reserved.