Main API entry to the synchronous version of the REST low-level client API
| Type | Name and description |
|---|---|
org.springframework.web.client.RestTemplate |
restTemplate |
| Constructor and description |
|---|
RestBuilder
(java.util.Map settings = [:]) |
RestBuilder
(org.springframework.web.client.RestTemplate restTemplate) |
| Type | Name and description |
|---|---|
RestResponse |
delete(java.lang.String url, groovy.lang.Closure customizer = null)Issues DELETE a request and returns the response |
RestResponse |
delete(java.lang.String url, java.util.Map<java.lang.String, java.lang.Object> urlVariables, groovy.lang.Closure customizer = null)Issues DELETE a request and returns the response |
protected RestResponse |
doRequestInternal(java.lang.String url, groovy.lang.Closure customizer, org.springframework.http.HttpMethod method, java.util.Map<java.lang.String, java.lang.Object> urlVariables = Collections.emptyMap() |
RestResponse |
get(java.lang.String url, groovy.lang.Closure customizer = null)Issues a GET request and returns the response in the most appropriate type |
RestResponse |
get(java.lang.String url, java.util.Map<java.lang.String, java.lang.Object> urlVariables, groovy.lang.Closure customizer = null)Issues a GET request and returns the response in the most appropriate type |
static java.net.Proxy |
getProxyForSystemProperties() |
protected RestResponse |
handleResponse(org.springframework.http.ResponseEntity responseEntity) |
RestResponse |
head(java.lang.String url, java.util.Map<java.lang.String, java.lang.Object> urlVariables, groovy.lang.Closure customizer = null)Issues HEAD a request and returns the response |
RestResponse |
head(java.lang.String url, groovy.lang.Closure customizer = null)Issues HEAD a request and returns the response |
protected org.springframework.http.ResponseEntity |
invokeRestTemplate(java.lang.String url, org.springframework.http.HttpMethod method, RequestCustomizer requestCustomizer) |
RestResponse |
options(java.lang.String url, java.util.Map<java.lang.String, java.lang.Object> urlVariables, groovy.lang.Closure customizer = null)Issues OPTIONS a request and returns the response |
RestResponse |
options(java.lang.String url, groovy.lang.Closure customizer = null)Issues OPTIONS a request and returns the response |
RestResponse |
patch(java.lang.String url, groovy.lang.Closure customizer = null)Issues a PATCH request and returns the response |
RestResponse |
patch(java.lang.String url, java.util.Map<java.lang.String, java.lang.Object> urlVariables, groovy.lang.Closure customizer = null)Issues a PATCH request and returns the response |
RestResponse |
post(java.lang.String url, groovy.lang.Closure customizer = null)Issues a POST request and returns the response |
RestResponse |
post(java.lang.String url, java.util.Map<java.lang.String, java.lang.Object> urlVariables, groovy.lang.Closure customizer = null)Issues a POST request and returns the response |
RestResponse |
put(java.lang.String url, groovy.lang.Closure customizer = null)Issues a PUT request and returns the response in the most appropriate type |
RestResponse |
put(java.lang.String url, java.util.Map<java.lang.String, java.lang.Object> urlVariables, groovy.lang.Closure customizer = null)Issues a PUT request and returns the response in the most appropriate type |
protected void |
registerMessageConverters(org.springframework.web.client.RestTemplate restTemplate) |
RestResponse |
trace(java.lang.String url, java.util.Map<java.lang.String, java.lang.Object> urlVariables, groovy.lang.Closure customizer = null)Issues TRACE a request and returns the response |
RestResponse |
trace(java.lang.String url, groovy.lang.Closure customizer = null)Issues TRACE a request and returns the response |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Issues DELETE a request and returns the response
url - The URLcustomizer - (optional) The closure customizerIssues DELETE a request and returns the response
url - The URLcustomizer - (optional) The closure customizerIssues a GET request and returns the response in the most appropriate type
url - The URLurl - The closure customizer used to customize request attributesIssues a GET request and returns the response in the most appropriate type
url - The URLurl - The closure customizer used to customize request attributesIssues HEAD a request and returns the response
url - The URLcustomizer - (optional) The closure customizerIssues HEAD a request and returns the response
url - The URLcustomizer - (optional) The closure customizerIssues OPTIONS a request and returns the response
url - The URLcustomizer - (optional) The closure customizerIssues OPTIONS a request and returns the response
url - The URLcustomizer - (optional) The closure customizerIssues a PATCH request and returns the response
url - The URLcustomizer - (optional) The closure customizerIssues a PATCH request and returns the response
url - The URLcustomizer - (optional) The closure customizerIssues a POST request and returns the response
url - The URLcustomizer - (optional) The closure customizerIssues a POST request and returns the response
url - The URLcustomizer - (optional) The closure customizerIssues a PUT request and returns the response in the most appropriate type
url - The URLcustomizer - The clouser customizerIssues a PUT request and returns the response in the most appropriate type
url - The URLcustomizer - The clouser customizerIssues TRACE a request and returns the response
url - The URLcustomizer - (optional) The closure customizerIssues TRACE a request and returns the response
url - The URLcustomizer - (optional) The closure customizer