public class RestClientUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RestClientUtils.Action |
| Modifier and Type | Field and Description |
|---|---|
static String |
REPLACE_WITH |
| Constructor and Description |
|---|
RestClientUtils() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getFromCache() |
Object |
getFromCache(String key) |
Map<String,String> |
getResponseHeaders(javax.ws.rs.core.Response clientResponse) |
RestServiceResponse |
invoke(String action,
Map<String,String> requestHeaders,
String url,
String requestBody) |
boolean |
removeFromCache(String key) |
void |
saveToCache(Object value) |
void |
saveToCache(String key,
Object value,
long timeToLive) |
void |
saveToCache(String key,
Object value,
long timeToLive,
long cacheAllowance) |
void |
setOauthTokenCache(OauthTokenCache oauthTokenCache) |
void |
setRestClient(RestClient restClient) |
public static final String REPLACE_WITH
public void setRestClient(RestClient restClient)
public void setOauthTokenCache(OauthTokenCache oauthTokenCache)
public void saveToCache(Object value)
public Object getFromCache()
public boolean removeFromCache(String key)
public RestServiceResponse invoke(String action, Map<String,String> requestHeaders, String url, String requestBody)
Copyright © 2019. All rights reserved.