org.springframework.web.client.RestOperations |
Known Indirect Subclasses |
Interface specifying a basic set of RESTful operations. Implemented by RestTemplate
.
Not often used directly, but a useful option to enhance testability, as it can easily
be mocked or stubbed.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete the resources at the specified URI.
| |||||||||||
Delete the resources at the specified URL.
| |||||||||||
Delete the resources at the specified URI.
| |||||||||||
Execute the HTTP method to the given URI template, writing the given request entity to the request, and
returns the response as
ResponseEntity . | |||||||||||
Execute the HTTP method to the given URI template, writing the given request entity to the request, and
returns the response as
ResponseEntity . | |||||||||||
Execute the HTTP method to the given URI template, writing the given request entity to the request, and
returns the response as
ResponseEntity . | |||||||||||
Execute the HTTP method to the given URL, preparing the request with the
RequestCallback , and reading the response with a ResponseExtractor . | |||||||||||
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback , and reading the response with a ResponseExtractor . | |||||||||||
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback , and reading the response with a ResponseExtractor . | |||||||||||
Retrieve a representation by doing a GET on the URL .
| |||||||||||
Retrieve a representation by doing a GET on the URI template.
| |||||||||||
Retrieve an entity by doing a GET on the specified URL.
| |||||||||||
Retrieve a representation by doing a GET on the URI template.
| |||||||||||
Retrieve a representation by doing a GET on the URL .
| |||||||||||
Retrieve a representation by doing a GET on the specified URL.
| |||||||||||
Retrieve all headers of the resource specified by the URI template.
| |||||||||||
Retrieve all headers of the resource specified by the URL.
| |||||||||||
Retrieve all headers of the resource specified by the URI template.
| |||||||||||
Return the value of the Allow header for the given URL.
| |||||||||||
Return the value of the Allow header for the given URI.
| |||||||||||
Return the value of the Allow header for the given URI.
| |||||||||||
Create a new resource by POSTing the given object to the URI template,
and returns the response as
HttpEntity . | |||||||||||
Create a new resource by POSTing the given object to the URI template,
and returns the response as
ResponseEntity . | |||||||||||
Create a new resource by POSTing the given object to the URL,
and returns the response as
ResponseEntity . | |||||||||||
Create a new resource by POSTing the given object to the URI template, and returns the value of the
Location header. | |||||||||||
Create a new resource by POSTing the given object to the URL, and returns the value of the
Location header. | |||||||||||
Create a new resource by POSTing the given object to the URI template, and returns the value of the
Location header. | |||||||||||
Create a new resource by POSTing the given object to the URI template,
and returns the representation found in the response.
| |||||||||||
Create a new resource by POSTing the given object to the URL,
and returns the representation found in the response.
| |||||||||||
Create a new resource by POSTing the given object to the URI template,
and returns the representation found in the response.
| |||||||||||
Creates a new resource by PUTting the given object to URL.
| |||||||||||
Create or update a resource by PUTting the given object to the URI.
| |||||||||||
Creates a new resource by PUTting the given object to URI template.
|
Delete the resources at the specified URI.
URI Template variables are expanded using the given URI variables, if any.
url | the URL |
---|---|
uriVariables | the variables to expand in the template |
RestClientException |
---|
Delete the resources at the specified URI.
URI Template variables are expanded using the given map.
url | the URL |
---|---|
uriVariables | the variables to expand the template |
RestClientException |
---|
Execute the HTTP method to the given URI template, writing the given request entity to the request, and
returns the response as ResponseEntity
.
URI Template variables are expanded using the given URI variables, if any.
url | the URL |
---|---|
method | the HTTP method (GET, POST, etc) |
requestEntity | the entity (headers and/or body) to write to the request, may be null |
responseType | the type of the return value |
uriVariables | the variables to expand in the template |
RestClientException |
---|
Execute the HTTP method to the given URI template, writing the given request entity to the request, and
returns the response as ResponseEntity
.
url | the URL |
---|---|
method | the HTTP method (GET, POST, etc) |
requestEntity | the entity (headers and/or body) to write to the request, may be null |
responseType | the type of the return value |
RestClientException |
---|
Execute the HTTP method to the given URI template, writing the given request entity to the request, and
returns the response as ResponseEntity
.
URI Template variables are expanded using the given URI variables, if any.
url | the URL |
---|---|
method | the HTTP method (GET, POST, etc) |
requestEntity | the entity (headers and/or body) to write to the request, may be null |
responseType | the type of the return value |
uriVariables | the variables to expand in the template |
RestClientException |
---|
Execute the HTTP method to the given URL, preparing the request with the
RequestCallback
, and reading the response with a ResponseExtractor
.
url | the URL |
---|---|
method | the HTTP method (GET, POST, etc) |
requestCallback | object that prepares the request |
responseExtractor | object that extracts the return value from the response |
ResponseExtractor
RestClientException |
---|
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback
, and reading the response with a ResponseExtractor
.
URI Template variables are expanded using the given URI variables, if any.
url | the URL |
---|---|
method | the HTTP method (GET, POST, etc) |
requestCallback | object that prepares the request |
responseExtractor | object that extracts the return value from the response |
uriVariables | the variables to expand in the template |
ResponseExtractor
RestClientException |
---|
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback
, and reading the response with a ResponseExtractor
.
URI Template variables are expanded using the given URI variables map.
url | the URL |
---|---|
method | the HTTP method (GET, POST, etc) |
requestCallback | object that prepares the request |
responseExtractor | object that extracts the return value from the response |
uriVariables | the variables to expand in the template |
ResponseExtractor
RestClientException |
---|
Retrieve a representation by doing a GET on the URL .
The response is converted and stored in an ResponseEntity
.
url | the URL |
---|---|
responseType | the type of the return value |
RestClientException |
---|
Retrieve a representation by doing a GET on the URI template.
The response is converted and stored in an ResponseEntity
.
URI Template variables are expanded using the given map.
url | the URL |
---|---|
responseType | the type of the return value |
uriVariables | the map containing variables for the URI template |
RestClientException |
---|
Retrieve an entity by doing a GET on the specified URL.
The response is converted and stored in an ResponseEntity
.
URI Template variables are expanded using the given URI variables, if any.
url | the URL |
---|---|
responseType | the type of the return value |
uriVariables | the variables to expand the template |
RestClientException |
---|
Retrieve a representation by doing a GET on the URI template. The response (if any) is converted and returned.
URI Template variables are expanded using the given map.
url | the URL |
---|---|
responseType | the type of the return value |
uriVariables | the map containing variables for the URI template |
RestClientException |
---|
Retrieve a representation by doing a GET on the URL . The response (if any) is converted and returned.
url | the URL |
---|---|
responseType | the type of the return value |
RestClientException |
---|
Retrieve a representation by doing a GET on the specified URL. The response (if any) is converted and returned.
URI Template variables are expanded using the given URI variables, if any.
url | the URL |
---|---|
responseType | the type of the return value |
uriVariables | the variables to expand the template |
RestClientException |
---|
Retrieve all headers of the resource specified by the URI template.
URI Template variables are expanded using the given URI variables, if any.
url | the URL |
---|---|
uriVariables | the variables to expand the template |
RestClientException |
---|
Retrieve all headers of the resource specified by the URL.
url | the URL |
---|
RestClientException |
---|
Retrieve all headers of the resource specified by the URI template.
URI Template variables are expanded using the given map.
url | the URL |
---|---|
uriVariables | the map containing variables for the URI template |
RestClientException |
---|
Return the value of the Allow header for the given URL.
url | the URL |
---|
RestClientException |
---|
Return the value of the Allow header for the given URI.
URI Template variables are expanded using the given map.
url | the URL |
---|---|
uriVariables | the variables to expand in the template |
RestClientException |
---|
Return the value of the Allow header for the given URI.
URI Template variables are expanded using the given URI variables, if any.
url | the URL |
---|---|
uriVariables | the variables to expand in the template |
RestClientException |
---|
Create a new resource by POSTing the given object to the URI template,
and returns the response as HttpEntity
.
URI Template variables are expanded using the given map.
The request
parameter can be a HttpEntity
in order to
add additional HTTP headers to the request.
url | the URL |
---|---|
request | the Object to be POSTed, may be null |
uriVariables | the variables to expand the template |
RestClientException |
---|
Create a new resource by POSTing the given object to the URI template,
and returns the response as ResponseEntity
.
URI Template variables are expanded using the given URI variables, if any.
The request
parameter can be a HttpEntity
in order to
add additional HTTP headers to the request.
url | the URL |
---|---|
request | the Object to be POSTed, may be null |
uriVariables | the variables to expand the template |
RestClientException |
---|
Create a new resource by POSTing the given object to the URL,
and returns the response as ResponseEntity
.
The request
parameter can be a HttpEntity
in order to
add additional HTTP headers to the request.
url | the URL |
---|---|
request | the Object to be POSTed, may be null |
RestClientException |
---|
Create a new resource by POSTing the given object to the URI template, and returns the value of the
Location
header. This header typically indicates where the new resource is stored.
URI Template variables are expanded using the given map.
The request
parameter can be a HttpEntity
in order to
add additional HTTP headers to the request.
url | the URL |
---|---|
request | the Object to be POSTed, may be null |
uriVariables | the variables to expand the template |
Location
headerRestClientException |
---|
Create a new resource by POSTing the given object to the URL, and returns the value of the
Location
header. This header typically indicates where the new resource is stored.
The request
parameter can be a HttpEntity
in order to
add additional HTTP headers to the request.
url | the URL |
---|---|
request | the Object to be POSTed, may be null |
Location
headerRestClientException |
---|
Create a new resource by POSTing the given object to the URI template, and returns the value of the
Location
header. This header typically indicates where the new resource is stored.
URI Template variables are expanded using the given URI variables, if any.
The request
parameter can be a HttpEntity
in order to
add additional HTTP headers to the request.
url | the URL |
---|---|
request | the Object to be POSTed, may be null |
uriVariables | the variables to expand the template |
Location
headerRestClientException |
---|
Create a new resource by POSTing the given object to the URI template, and returns the representation found in the response.
URI Template variables are expanded using the given map.
The request
parameter can be a HttpEntity
in order to
add additional HTTP headers to the request.
url | the URL |
---|---|
request | the Object to be POSTed, may be null |
responseType | the type of the return value |
uriVariables | the variables to expand the template |
RestClientException |
---|
Create a new resource by POSTing the given object to the URL, and returns the representation found in the response.
The request
parameter can be a HttpEntity
in order to
add additional HTTP headers to the request.
url | the URL |
---|---|
request | the Object to be POSTed, may be null |
responseType | the type of the return value |
RestClientException |
---|
Create a new resource by POSTing the given object to the URI template, and returns the representation found in the response.
URI Template variables are expanded using the given URI variables, if any.
The request
parameter can be a HttpEntity
in order to
add additional HTTP headers to the request.
url | the URL |
---|---|
request | the Object to be POSTed, may be null |
responseType | the type of the return value |
uriVariables | the variables to expand the template |
RestClientException |
---|
Creates a new resource by PUTting the given object to URL.
The request
parameter can be a HttpEntity
in order to
add additional HTTP headers to the request.
url | the URL |
---|---|
request | the Object to be PUT, may be null |
RestClientException |
---|
Create or update a resource by PUTting the given object to the URI.
URI Template variables are expanded using the given URI variables, if any.
The request
parameter can be a HttpEntity
in order to
add additional HTTP headers to the request.
url | the URL |
---|---|
request | the Object to be PUT, may be null |
uriVariables | the variables to expand the template |
RestClientException |
---|
Creates a new resource by PUTting the given object to URI template.
URI Template variables are expanded using the given map.
The request
parameter can be a HttpEntity
in order to
add additional HTTP headers to the request.
url | the URL |
---|---|
request | the Object to be PUT, may be null |
uriVariables | the variables to expand the template |
RestClientException |
---|