public abstract class AbstractProfileRestClientBase
extends org.craftercms.commons.rest.AbstractRestClientBase
| Modifier and Type | Field and Description |
|---|---|
protected AccessTokenIdResolver |
accessTokenIdResolver |
| Constructor and Description |
|---|
AbstractProfileRestClientBase() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.util.MultiValueMap<String,String> |
createBaseParams() |
protected <T> T |
doGetForObject(String url,
Class<T> responseType,
Object... uriVariables) |
protected <T> T |
doGetForObject(String url,
org.springframework.core.ParameterizedTypeReference<T> responseType,
Object... uriVariables) |
protected <T> T |
doGetForObject(URI url,
Class<T> responseType) |
protected <T> T |
doGetForObject(URI url,
org.springframework.core.ParameterizedTypeReference<T> responseType) |
protected URI |
doPostForLocation(String url,
Object request,
Object... uriVariables) |
protected <T> T |
doPostForObject(String url,
Object request,
Class<T> responseType,
Object... uriVariables) |
protected String |
getAbsoluteUrlWithAccessTokenIdParam(String relativeUrl) |
protected void |
handleException(Exception e) |
protected void |
handleRestServiceException(org.craftercms.commons.rest.RestServiceException e) |
void |
setAccessTokenIdResolver(AccessTokenIdResolver accessTokenIdResolver) |
protected AccessTokenIdResolver accessTokenIdResolver
public void setAccessTokenIdResolver(AccessTokenIdResolver accessTokenIdResolver)
protected String getAbsoluteUrlWithAccessTokenIdParam(String relativeUrl)
protected <T> T doPostForObject(String url, Object request, Class<T> responseType, Object... uriVariables) throws ProfileException
ProfileExceptionprotected URI doPostForLocation(String url, Object request, Object... uriVariables) throws ProfileException
ProfileExceptionprotected <T> T doGetForObject(String url, Class<T> responseType, Object... uriVariables) throws ProfileException
ProfileExceptionprotected <T> T doGetForObject(URI url, Class<T> responseType) throws ProfileException
ProfileExceptionprotected <T> T doGetForObject(String url, org.springframework.core.ParameterizedTypeReference<T> responseType, Object... uriVariables) throws ProfileException
ProfileExceptionprotected <T> T doGetForObject(URI url, org.springframework.core.ParameterizedTypeReference<T> responseType) throws ProfileException
ProfileExceptionprotected void handleRestServiceException(org.craftercms.commons.rest.RestServiceException e)
throws ProfileException
ProfileExceptionprotected void handleException(Exception e) throws ProfileException
ProfileExceptionCopyright © 2015 CrafterCMS. All Rights Reserved.