|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExtendedRestOperations
Adds some utility methods to RestOperations
| Nested Class Summary | |
|---|---|
static interface |
ExtendedRestOperations.ProxyResponse
Response handler for proxying a rest request. |
| Method Summary | ||
|---|---|---|
|
getForObject(String url,
Class<T> responseType,
org.springframework.http.HttpHeaders headers,
Object... uriVariables)
Retrieve a representation by doing a GET on the specified URL. |
|
int |
proxyRequest(ExtendedRestOperations.ProxyResponse proxyResponse,
String url,
org.springframework.http.HttpMethod method,
org.springframework.http.HttpHeaders headers,
Object... uriVariables)
Proxies the response from a REST request, writing the status, headers and body to the ExtendedRestOperations.ProxyResponse |
|
| Methods inherited from interface org.springframework.web.client.RestOperations |
|---|
delete, 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, put |
| Method Detail |
|---|
<T> T getForObject(String url,
Class<T> responseType,
org.springframework.http.HttpHeaders headers,
Object... uriVariables)
throws org.springframework.web.client.RestClientException
URI Template variables are expanded using the given URI variables, if any.
url - the URLheaders - headers to set on the requestresponseType - the type of the return valueuriVariables - the variables to expand the template
org.springframework.web.client.RestClientExceptionRestOperations.getForObject(String, Class, Object...)
int proxyRequest(ExtendedRestOperations.ProxyResponse proxyResponse,
String url,
org.springframework.http.HttpMethod method,
org.springframework.http.HttpHeaders headers,
Object... uriVariables)
throws org.springframework.web.client.RestClientException
ExtendedRestOperations.ProxyResponse
proxyResponse - response to write the results of the request tourl - the URLheaders - header to set on the requesturiVariables - the variables to expand the template
org.springframework.web.client.RestClientException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||