public interface RestClient
| Modifier and Type | Method and Description |
|---|---|
Response |
sendApiDelete(OauthToken token,
String url,
Map<String,List<String>> deleteParameters,
int connectTimeout,
int readTimeout) |
Response |
sendApiGet(OauthToken token,
String url,
int connectTimeout,
int readTimeout) |
Response |
sendApiPost(OauthToken token,
String url,
Map<String,List<String>> postParameters,
int connectTimeout,
int readTimeout) |
Response |
sendApiPostFile(OauthToken token,
String url,
Map<String,List<String>> postParameters,
String fileParameter,
String filePath,
InputStream is,
int connectTimeout,
int readTimeout) |
Response |
sendApiPut(OauthToken token,
String url,
Map<String,List<String>> putParameters,
int connectTimeout,
int readTimeout) |
Response |
sendJsonPost(OauthToken token,
String url,
String json,
int connectTimeout,
int readTimeout) |
Response |
sendJsonPut(OauthToken token,
String url,
String json,
int connectTimeout,
int readTimeout) |
String |
sendUpload(String uploadUrl,
Map<String,List<String>> params,
InputStream in,
String filename,
int connectTimeout,
int readTimeout) |
Response sendApiGet(@NotNull OauthToken token, @NotNull String url, int connectTimeout, int readTimeout) throws IOException
IOExceptionResponse sendJsonPost(@NotNull OauthToken token, @NotNull String url, String json, int connectTimeout, int readTimeout) throws IOException
IOExceptionResponse sendJsonPut(@NotNull OauthToken token, @NotNull String url, String json, int connectTimeout, int readTimeout) throws IOException
IOExceptionResponse sendApiPost(@NotNull OauthToken token, @NotNull String url, Map<String,List<String>> postParameters, int connectTimeout, int readTimeout) throws InvalidOauthTokenException, IOException
Response sendApiPostFile(@NotNull OauthToken token, @NotNull String url, Map<String,List<String>> postParameters, String fileParameter, String filePath, InputStream is, int connectTimeout, int readTimeout) throws InvalidOauthTokenException, IOException
Response sendApiDelete(@NotNull OauthToken token, @NotNull String url, Map<String,List<String>> deleteParameters, int connectTimeout, int readTimeout) throws InvalidOauthTokenException, IOException
Response sendApiPut(@NotNull OauthToken token, @NotNull String url, Map<String,List<String>> putParameters, int connectTimeout, int readTimeout) throws InvalidOauthTokenException, IOException
String sendUpload(String uploadUrl, Map<String,List<String>> params, InputStream in, String filename, int connectTimeout, int readTimeout) throws IOException
IOExceptionCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.