public class ExtendedRestTemplate extends org.springframework.web.client.RestTemplate implements ExtendedRestOperations
ExtendedRestOperations.ProxyResponse| Constructor and Description |
|---|
ExtendedRestTemplate() |
ExtendedRestTemplate(org.springframework.http.client.ClientHttpRequestFactory requestFactory) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getForObject(java.lang.String url,
java.lang.Class<T> responseType,
org.springframework.http.HttpHeaders headers,
java.lang.Object... urlVariables)
Retrieve a representation by doing a GET on the specified URL.
|
int |
proxyRequest(ExtendedRestOperations.ProxyResponse proxyResponse,
java.lang.String url,
org.springframework.http.HttpMethod method,
org.springframework.http.HttpHeaders headers,
java.lang.Object... urlVariables)
Proxies the response from a REST request, writing the status, headers and body to the
ExtendedRestOperations.ProxyResponse |
void |
setInterceptors(java.util.List<org.springframework.http.client.ClientHttpRequestInterceptor> interceptors) |
delete, delete, delete, doExecute, exchange, exchange, exchange, exchange, exchange, exchange, execute, execute, execute, getErrorHandler, getForEntity, getForEntity, getForEntity, getForObject, getForObject, getForObject, getMessageConverters, headForHeaders, headForHeaders, headForHeaders, optionsForAllow, optionsForAllow, optionsForAllow, postForEntity, postForEntity, postForEntity, postForLocation, postForLocation, postForLocation, postForObject, postForObject, postForObject, put, put, put, setErrorHandler, setMessageConvertersgetInterceptors, getRequestFactorycreateRequest, setRequestFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, delete, delete, exchange, exchange, exchange, exchange, exchange, exchange, execute, execute, execute, getForEntity, getForEntity, getForEntity, getForObject, getForObject, getForObject, headForHeaders, headForHeaders, headForHeaders, optionsForAllow, optionsForAllow, optionsForAllow, postForEntity, postForEntity, postForEntity, postForLocation, postForLocation, postForLocation, postForObject, postForObject, postForObject, put, put, putpublic ExtendedRestTemplate()
public ExtendedRestTemplate(org.springframework.http.client.ClientHttpRequestFactory requestFactory)
public final void setInterceptors(java.util.List<org.springframework.http.client.ClientHttpRequestInterceptor> interceptors)
setInterceptors in class org.springframework.http.client.support.InterceptingHttpAccessorpublic <T> T getForObject(java.lang.String url,
java.lang.Class<T> responseType,
org.springframework.http.HttpHeaders headers,
java.lang.Object... urlVariables)
throws org.springframework.web.client.RestClientException
ExtendedRestOperationsURI Template variables are expanded using the given URI variables, if any.
getForObject in interface ExtendedRestOperationsT - Class of the return response Typeurl - the URLresponseType - the type of the return valueheaders - headers to set on the requesturlVariables - the variables to expand the templateorg.springframework.web.client.RestClientExceptionRestOperations.getForObject(String, Class, Object...)public int proxyRequest(ExtendedRestOperations.ProxyResponse proxyResponse, java.lang.String url, org.springframework.http.HttpMethod method, org.springframework.http.HttpHeaders headers, java.lang.Object... urlVariables) throws org.springframework.web.client.RestClientException
ExtendedRestOperationsExtendedRestOperations.ProxyResponseproxyRequest in interface ExtendedRestOperationsproxyResponse - response to write the results of the request tourl - the URLmethod - HTTP methodheaders - header to set on the requesturlVariables - the variables to expand the templateorg.springframework.web.client.RestClientExceptionCopyright © 2018 Jasig. All Rights Reserved.