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
IOException
public static String constructUrlString(String apiUrl, Map<String,Object> allParams) throws IOException
IOException
public static com.google.common.util.concurrent.ListenableFuture<APIRequest.ResponseWrapper> invoke(okhttp3.OkHttpClient client, okhttp3.Request request)
Copyright © 2023. All rights reserved.