Package | Description |
---|---|
org.springframework.web.client |
Core package of the client-side web support.
|
Modifier and Type | Class and Description |
---|---|
class |
HttpClientErrorException
Exception thrown when an HTTP 4xx is received.
|
class |
HttpServerErrorException
Exception thrown when an HTTP 5xx is received.
|
class |
HttpStatusCodeException
Abstract base class for exceptions based on an
HttpStatus . |
class |
ResourceAccessException
Exception thrown when an I/O error occurs.
|
class |
UnknownHttpStatusCodeException
Exception thrown when an unknown (or custom) HTTP status code is received.
|
Modifier and Type | Method and Description |
---|---|
void |
RestOperations.delete(String url,
Map<String,?> uriVariables)
Delete the resources at the specified URI.
|
void |
RestTemplate.delete(String url,
Map<String,?> urlVariables) |
void |
RestOperations.delete(String url,
Object... uriVariables)
Delete the resources at the specified URI.
|
void |
RestTemplate.delete(String url,
Object... urlVariables) |
void |
RestOperations.delete(URI url)
Delete the resources at the specified URL.
|
void |
RestTemplate.delete(URI url) |
protected <T> T |
RestTemplate.doExecute(URI url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor)
Execute the given method on the provided URI.
|
<T> ResponseEntity<T> |
RestOperations.exchange(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
Class<T> responseType,
Map<String,?> uriVariables)
Execute the HTTP method to the given URI template, writing the given request entity to the request, and
returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
Class<T> responseType,
Map<String,?> uriVariables) |
<T> ResponseEntity<T> |
RestOperations.exchange(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
Class<T> responseType,
Object... uriVariables)
Execute the HTTP method to the given URI template, writing the given request entity to the request, and
returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
Class<T> responseType,
Object... uriVariables) |
<T> ResponseEntity<T> |
RestOperations.exchange(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
Map<String,?> uriVariables)
Execute the HTTP method to the given URI template, writing the given
request entity to the request, and returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
Map<String,?> uriVariables) |
<T> ResponseEntity<T> |
RestOperations.exchange(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
Object... uriVariables)
Execute the HTTP method to the given URI template, writing the given
request entity to the request, and returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(String url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType,
Object... uriVariables) |
<T> ResponseEntity<T> |
RestOperations.exchange(URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
Class<T> responseType)
Execute the HTTP method to the given URI template, writing the given request entity to the request, and
returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
Class<T> responseType) |
<T> ResponseEntity<T> |
RestOperations.exchange(URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType)
Execute the HTTP method to the given URI template, writing the given
request entity to the request, and returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(URI url,
HttpMethod method,
HttpEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType) |
<T> T |
RestOperations.execute(String url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
Map<String,?> uriVariables)
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback , and reading the response with a ResponseExtractor . |
<T> T |
RestTemplate.execute(String url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
Map<String,?> urlVariables) |
<T> T |
RestOperations.execute(String url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
Object... uriVariables)
Execute the HTTP method to the given URI template, preparing the request with the
RequestCallback , and reading the response with a ResponseExtractor . |
<T> T |
RestTemplate.execute(String url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor,
Object... urlVariables) |
<T> T |
RestOperations.execute(URI url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor)
Execute the HTTP method to the given URL, preparing the request with the
RequestCallback , and reading the response with a ResponseExtractor . |
<T> T |
RestTemplate.execute(URI url,
HttpMethod method,
RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor) |
<T> ResponseEntity<T> |
RestOperations.getForEntity(String url,
Class<T> responseType,
Map<String,?> uriVariables)
Retrieve a representation by doing a GET on the URI template.
|
<T> ResponseEntity<T> |
RestTemplate.getForEntity(String url,
Class<T> responseType,
Map<String,?> urlVariables) |
<T> ResponseEntity<T> |
RestOperations.getForEntity(String url,
Class<T> responseType,
Object... uriVariables)
Retrieve an entity by doing a GET on the specified URL.
|
<T> ResponseEntity<T> |
RestTemplate.getForEntity(String url,
Class<T> responseType,
Object... urlVariables) |
<T> ResponseEntity<T> |
RestOperations.getForEntity(URI url,
Class<T> responseType)
Retrieve a representation by doing a GET on the URL .
|
<T> ResponseEntity<T> |
RestTemplate.getForEntity(URI url,
Class<T> responseType) |
<T> T |
RestOperations.getForObject(String url,
Class<T> responseType,
Map<String,?> uriVariables)
Retrieve a representation by doing a GET on the URI template.
|
<T> T |
RestTemplate.getForObject(String url,
Class<T> responseType,
Map<String,?> urlVariables) |
<T> T |
RestOperations.getForObject(String url,
Class<T> responseType,
Object... uriVariables)
Retrieve a representation by doing a GET on the specified URL.
|
<T> T |
RestTemplate.getForObject(String url,
Class<T> responseType,
Object... urlVariables) |
<T> T |
RestOperations.getForObject(URI url,
Class<T> responseType)
Retrieve a representation by doing a GET on the URL .
|
<T> T |
RestTemplate.getForObject(URI url,
Class<T> responseType) |
HttpHeaders |
RestOperations.headForHeaders(String url,
Map<String,?> uriVariables)
Retrieve all headers of the resource specified by the URI template.
|
HttpHeaders |
RestTemplate.headForHeaders(String url,
Map<String,?> urlVariables) |
HttpHeaders |
RestOperations.headForHeaders(String url,
Object... uriVariables)
Retrieve all headers of the resource specified by the URI template.
|
HttpHeaders |
RestTemplate.headForHeaders(String url,
Object... urlVariables) |
HttpHeaders |
RestOperations.headForHeaders(URI url)
Retrieve all headers of the resource specified by the URL.
|
HttpHeaders |
RestTemplate.headForHeaders(URI url) |
Set<HttpMethod> |
RestOperations.optionsForAllow(String url,
Map<String,?> uriVariables)
Return the value of the Allow header for the given URI.
|
Set<HttpMethod> |
RestTemplate.optionsForAllow(String url,
Map<String,?> urlVariables) |
Set<HttpMethod> |
RestOperations.optionsForAllow(String url,
Object... uriVariables)
Return the value of the Allow header for the given URI.
|
Set<HttpMethod> |
RestTemplate.optionsForAllow(String url,
Object... urlVariables) |
Set<HttpMethod> |
RestOperations.optionsForAllow(URI url)
Return the value of the Allow header for the given URL.
|
Set<HttpMethod> |
RestTemplate.optionsForAllow(URI url) |
<T> ResponseEntity<T> |
RestOperations.postForEntity(String url,
Object request,
Class<T> responseType,
Map<String,?> uriVariables)
Create a new resource by POSTing the given object to the URI template,
and returns the response as
HttpEntity . |
<T> ResponseEntity<T> |
RestTemplate.postForEntity(String url,
Object request,
Class<T> responseType,
Map<String,?> uriVariables) |
<T> ResponseEntity<T> |
RestOperations.postForEntity(String url,
Object request,
Class<T> responseType,
Object... uriVariables)
Create a new resource by POSTing the given object to the URI template,
and returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.postForEntity(String url,
Object request,
Class<T> responseType,
Object... uriVariables) |
<T> ResponseEntity<T> |
RestOperations.postForEntity(URI url,
Object request,
Class<T> responseType)
Create a new resource by POSTing the given object to the URL,
and returns the response as
ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.postForEntity(URI url,
Object request,
Class<T> responseType) |
URI |
RestOperations.postForLocation(String url,
Object request,
Map<String,?> uriVariables)
Create a new resource by POSTing the given object to the URI template, and returns the value of the
Location header. |
URI |
RestTemplate.postForLocation(String url,
Object request,
Map<String,?> urlVariables) |
URI |
RestOperations.postForLocation(String url,
Object request,
Object... uriVariables)
Create a new resource by POSTing the given object to the URI template, and returns the value of the
Location header. |
URI |
RestTemplate.postForLocation(String url,
Object request,
Object... urlVariables) |
URI |
RestOperations.postForLocation(URI url,
Object request)
Create a new resource by POSTing the given object to the URL, and returns the value of the
Location header. |
URI |
RestTemplate.postForLocation(URI url,
Object request) |
<T> T |
RestOperations.postForObject(String url,
Object request,
Class<T> responseType,
Map<String,?> uriVariables)
Create a new resource by POSTing the given object to the URI template,
and returns the representation found in the response.
|
<T> T |
RestTemplate.postForObject(String url,
Object request,
Class<T> responseType,
Map<String,?> uriVariables) |
<T> T |
RestOperations.postForObject(String url,
Object request,
Class<T> responseType,
Object... uriVariables)
Create a new resource by POSTing the given object to the URI template,
and returns the representation found in the response.
|
<T> T |
RestTemplate.postForObject(String url,
Object request,
Class<T> responseType,
Object... uriVariables) |
<T> T |
RestOperations.postForObject(URI url,
Object request,
Class<T> responseType)
Create a new resource by POSTing the given object to the URL,
and returns the representation found in the response.
|
<T> T |
RestTemplate.postForObject(URI url,
Object request,
Class<T> responseType) |
void |
RestOperations.put(String url,
Object request,
Map<String,?> uriVariables)
Creates a new resource by PUTting the given object to URI template.
|
void |
RestTemplate.put(String url,
Object request,
Map<String,?> urlVariables) |
void |
RestOperations.put(String url,
Object request,
Object... uriVariables)
Create or update a resource by PUTting the given object to the URI.
|
void |
RestTemplate.put(String url,
Object request,
Object... urlVariables) |
void |
RestOperations.put(URI url,
Object request)
Creates a new resource by PUTting the given object to URL.
|
void |
RestTemplate.put(URI url,
Object request) |
Copyright © 2015. All rights reserved.