public class HttpClient extends Object implements RESTClient
| Constructor and Description |
|---|
HttpClient(String uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T extends RESTResponse> |
delete(String path,
RESTAuthFunction restAuthFunction) |
<T extends RESTResponse> |
delete(String path,
RESTRequest body,
RESTAuthFunction restAuthFunction) |
<T extends RESTResponse> |
get(String path,
Class<T> responseType,
RESTAuthFunction restAuthFunction) |
<T extends RESTResponse> |
get(String path,
Map<String,String> queryParams,
Class<T> responseType,
RESTAuthFunction restAuthFunction) |
protected static String |
getRequestUrl(String uri,
String path,
Map<String,String> queryParams) |
<T extends RESTResponse> |
post(String path,
RESTRequest body,
Class<T> responseType,
RESTAuthFunction restAuthFunction) |
<T extends RESTResponse> |
post(String path,
RESTRequest body,
RESTAuthFunction restAuthFunction) |
public HttpClient(String uri)
public <T extends RESTResponse> T get(String path, Class<T> responseType, RESTAuthFunction restAuthFunction)
get in interface RESTClientpublic <T extends RESTResponse> T get(String path, Map<String,String> queryParams, Class<T> responseType, RESTAuthFunction restAuthFunction)
get in interface RESTClientpublic <T extends RESTResponse> T post(String path, RESTRequest body, RESTAuthFunction restAuthFunction)
post in interface RESTClientpublic <T extends RESTResponse> T post(String path, RESTRequest body, Class<T> responseType, RESTAuthFunction restAuthFunction)
post in interface RESTClientpublic <T extends RESTResponse> T delete(String path, RESTAuthFunction restAuthFunction)
delete in interface RESTClientpublic <T extends RESTResponse> T delete(String path, RESTRequest body, RESTAuthFunction restAuthFunction)
delete in interface RESTClient@VisibleForTesting protected static String getRequestUrl(String uri, String path, Map<String,String> queryParams)
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.