public class RestUtil extends Object
| Constructor and Description |
|---|
RestUtil() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getApi(URI uri,
Class<?> responseType) |
org.springframework.web.client.RestTemplate |
getRestTemplate() |
String |
getToken() |
<T> T |
postApi(String uri,
org.springframework.http.MediaType mediaType,
Object requestType,
Class<?> responseClass) |
public <T> T postApi(String uri, org.springframework.http.MediaType mediaType, Object requestType, Class<?> responseClass) throws ApiNotAccessibleException
ApiNotAccessibleExceptionpublic <T> T getApi(URI uri, Class<?> responseType) throws ApiNotAccessibleException
ApiNotAccessibleExceptionpublic org.springframework.web.client.RestTemplate getRestTemplate()
throws KeyManagementException,
NoSuchAlgorithmException,
KeyStoreException
public String getToken() throws IOException
IOExceptionCopyright © 2020. All rights reserved.