public class RefreshingRestClient extends Object implements RestClient
| Constructor and Description |
|---|
RefreshingRestClient() |
| 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) |
public Response sendApiGet(@NotNull OauthToken token, @NotNull String url, int connectTimeout, int readTimeout) throws IOException
sendApiGet in interface RestClientIOExceptionpublic Response sendJsonPost(@NotNull OauthToken token, @NotNull String url, String json, int connectTimeout, int readTimeout) throws IOException
sendJsonPost in interface RestClientIOExceptionpublic Response sendJsonPut(@NotNull OauthToken token, @NotNull String url, String json, int connectTimeout, int readTimeout) throws IOException
sendJsonPut in interface RestClientIOExceptionpublic Response sendApiPost(@NotNull OauthToken token, @NotNull String url, Map<String,List<String>> postParameters, int connectTimeout, int readTimeout) throws InvalidOauthTokenException, IOException
sendApiPost in interface RestClientInvalidOauthTokenExceptionIOExceptionpublic 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
sendApiPostFile in interface RestClientInvalidOauthTokenExceptionIOExceptionpublic Response sendApiDelete(@NotNull OauthToken token, @NotNull String url, Map<String,List<String>> deleteParameters, int connectTimeout, int readTimeout) throws InvalidOauthTokenException, IOException
sendApiDelete in interface RestClientInvalidOauthTokenExceptionIOExceptionpublic Response sendApiPut(@NotNull OauthToken token, @NotNull String url, Map<String,List<String>> putParameters, int connectTimeout, int readTimeout) throws InvalidOauthTokenException, IOException
sendApiPut in interface RestClientInvalidOauthTokenExceptionIOExceptionpublic String sendUpload(String uploadUrl, Map<String,List<String>> params, InputStream in, String filename, int connectTimeout, int readTimeout) throws IOException
sendUpload in interface RestClientIOExceptionCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.