Uses of Class
org.springframework.web.client.RestClientException
-
Uses of RestClientException in org.springframework.web.client
Modifier and TypeClassDescriptionclass
Exception thrown when an HTTP 4xx is received.static final class
HttpClientErrorException
for status HTTP 400 Bad Request.static final class
HttpClientErrorException
for status HTTP 409 Conflict.static final class
HttpClientErrorException
for status HTTP 403 Forbidden.static final class
HttpClientErrorException
for status HTTP 410 Gone.static final class
HttpClientErrorException
for status HTTP 405 Method Not Allowed.static final class
HttpClientErrorException
for status HTTP 406 Not Acceptable.static final class
HttpClientErrorException
for status HTTP 404 Not Found.static final class
HttpClientErrorException
for status HTTP 429 Too Many Requests.static final class
HttpClientErrorException
for status HTTP 401 Unauthorized.static final class
HttpClientErrorException
for status HTTP 422 Unprocessable Entity.static final class
HttpClientErrorException
for status HTTP 415 Unsupported Media Type.class
Exception thrown when an HTTP 5xx is received.static final class
HttpServerErrorException
for status HTTP HTTP 502 Bad Gateway.static final class
HttpServerErrorException
for status HTTP 504 Gateway Timeout.static final class
HttpServerErrorException
for status HTTP 500 Internal Server Error.static final class
HttpServerErrorException
for status HTTP 501 Not Implemented.static final class
HttpServerErrorException
for status HTTP 503 Service Unavailable.class
Abstract base class for exceptions based on anHttpStatus
.class
Exception thrown when an I/O error occurs.class
Common base class for exceptions that contain actual HTTP response data.class
Raised when no suitableHttpMessageConverter
could be found to extract the response.class
Exception thrown when an unknown (or custom) HTTP status code is received.Modifier and TypeMethodDescriptionvoid
ExtractingResponseErrorHandler.setSeriesMapping
(Map<HttpStatus.Series, Class<? extends RestClientException>> seriesMapping) Set the mapping from HTTP status series toRestClientException
subclass.void
ExtractingResponseErrorHandler.setStatusMapping
(Map<HttpStatus, Class<? extends RestClientException>> statusMapping) Set the mapping from HTTP status code toRestClientException
subclass.Modifier and TypeMethodDescriptionvoid
Delete the resources at the specified URI.void
Delete the resources at the specified URI.void
Delete the resources at the specified URL.void
void
void
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, Object... uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity
.<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 asResponseEntity
.<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 asResponseEntity
.<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 asResponseEntity
.<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 asResponseEntity
.<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 asResponseEntity
.<T> ResponseEntity<T>
RestOperations.exchange
(RequestEntity<?> requestEntity, Class<T> responseType) Execute the request specified in the givenRequestEntity
and return the response asResponseEntity
.<T> ResponseEntity<T>
RestOperations.exchange
(RequestEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) Execute the request specified in the givenRequestEntity
and return the response asResponseEntity
.<T> ResponseEntity<T>
RestTemplate.exchange
(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables) <T> ResponseEntity<T>
RestTemplate.exchange
(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>
RestTemplate.exchange
(String url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Object... uriVariables) <T> ResponseEntity<T>
RestTemplate.exchange
(String url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>
RestTemplate.exchange
(URI url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType) <T> ResponseEntity<T>
RestTemplate.exchange
(URI url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) <T> ResponseEntity<T>
RestTemplate.exchange
(RequestEntity<?> entity, Class<T> responseType) <T> ResponseEntity<T>
RestTemplate.exchange
(RequestEntity<?> entity, ParameterizedTypeReference<T> responseType) <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 theRequestCallback
, and reading the response with aResponseExtractor
.<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 theRequestCallback
, and reading the response with aResponseExtractor
.<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 theRequestCallback
, and reading the response with aResponseExtractor
.<T> T
RestTemplate.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 theRequestCallback
, and reading the response with aResponseExtractor
.<T> T
RestTemplate.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 theRequestCallback
, and reading the response with aResponseExtractor
.<T> T
RestTemplate.execute
(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor) Execute the HTTP method to the given URL, preparing the request with theRequestCallback
, and reading the response with aResponseExtractor
.<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>
RestOperations.getForEntity
(String url, Class<T> responseType, Map<String, ?> uriVariables) Retrieve a representation by doing a GET on the URI template.<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
(String url, Class<T> responseType, Object... uriVariables) <T> ResponseEntity<T>
RestTemplate.getForEntity
(String url, Class<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>
RestTemplate.getForEntity
(URI url, Class<T> responseType) <T> T
RestOperations.getForObject
(String url, Class<T> responseType, Object... uriVariables) Retrieve a representation by doing a GET on the specified URL.<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
RestOperations.getForObject
(URI url, Class<T> responseType) Retrieve a representation by doing a GET on the URL .<T> T
RestTemplate.getForObject
(String url, Class<T> responseType, Object... uriVariables) <T> T
RestTemplate.getForObject
(String url, Class<T> responseType, Map<String, ?> uriVariables) <T> T
RestTemplate.getForObject
(URI url, Class<T> responseType) RestOperations.headForHeaders
(String url, Object... uriVariables) Retrieve all headers of the resource specified by the URI template.RestOperations.headForHeaders
(String url, Map<String, ?> uriVariables) Retrieve all headers of the resource specified by the URI template.RestOperations.headForHeaders
(URI url) Retrieve all headers of the resource specified by the URL.RestTemplate.headForHeaders
(String url, Object... uriVariables) RestTemplate.headForHeaders
(String url, Map<String, ?> uriVariables) RestTemplate.headForHeaders
(URI url) RestOperations.optionsForAllow
(String url, Object... uriVariables) Return the value of the Allow header for the given URI.RestOperations.optionsForAllow
(String url, Map<String, ?> uriVariables) Return the value of the Allow header for the given URI.RestOperations.optionsForAllow
(URI url) Return the value of the Allow header for the given URL.RestTemplate.optionsForAllow
(String url, Object... uriVariables) RestTemplate.optionsForAllow
(String url, Map<String, ?> uriVariables) RestTemplate.optionsForAllow
(URI url) <T> T
RestOperations.patchForObject
(String url, Object request, Class<T> responseType, Object... uriVariables) Update a resource by PATCHing the given object to the URI template, and return the representation found in the response.<T> T
RestOperations.patchForObject
(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) Update a resource by PATCHing the given object to the URI template, and return the representation found in the response.<T> T
RestOperations.patchForObject
(URI url, Object request, Class<T> responseType) Update a resource by PATCHing the given object to the URL, and return the representation found in the response.<T> T
RestTemplate.patchForObject
(String url, Object request, Class<T> responseType, Object... uriVariables) <T> T
RestTemplate.patchForObject
(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) <T> T
RestTemplate.patchForObject
(URI url, Object request, Class<T> responseType) <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 asResponseEntity
.<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 asHttpEntity
.<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 asResponseEntity
.<T> ResponseEntity<T>
RestTemplate.postForEntity
(String url, Object request, Class<T> responseType, Object... uriVariables) <T> ResponseEntity<T>
RestTemplate.postForEntity
(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>
RestTemplate.postForEntity
(URI url, Object request, Class<T> responseType) 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 theLocation
header.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 theLocation
header.RestOperations.postForLocation
(URI url, Object request) Create a new resource by POSTing the given object to the URL, and returns the value of theLocation
header.RestTemplate.postForLocation
(String url, Object request, Object... uriVariables) RestTemplate.postForLocation
(String url, Object request, Map<String, ?> uriVariables) RestTemplate.postForLocation
(URI url, Object request) <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
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
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
(String url, Object request, Class<T> responseType, Object... uriVariables) <T> T
RestTemplate.postForObject
(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) <T> T
RestTemplate.postForObject
(URI url, Object request, Class<T> responseType) void
Create or update a resource by PUTting the given object to the URI.void
Creates a new resource by PUTting the given object to URI template.void
Creates a new resource by PUTting the given object to URL.void
void
void