Uses of Class
org.springframework.web.client.RestClientException
Packages that use RestClientException
-
Uses of RestClientException in org.springframework.web.client
Subclasses of RestClientException in org.springframework.web.clientModifier and TypeClassDescriptionclassException thrown when an HTTP 4xx is received.static final classHttpClientErrorExceptionfor status HTTP 400 Bad Request.static final classHttpClientErrorExceptionfor status HTTP 409 Conflict.static final classHttpClientErrorExceptionfor status HTTP 403 Forbidden.static final classHttpClientErrorExceptionfor status HTTP 410 Gone.static final classHttpClientErrorExceptionfor status HTTP 405 Method Not Allowed.static final classHttpClientErrorExceptionfor status HTTP 406 Not Acceptable.static final classHttpClientErrorExceptionfor status HTTP 404 Not Found.static final classHttpClientErrorExceptionfor status HTTP 429 Too Many Requests.static final classHttpClientErrorExceptionfor status HTTP 401 Unauthorized.static final classHttpClientErrorExceptionfor status HTTP 422 Unprocessable Content.static final classDeprecated.static final classHttpClientErrorExceptionfor status HTTP 415 Unsupported Media Type.classException thrown when an HTTP 5xx is received.static final classHttpServerErrorExceptionfor HTTP status 502 Bad Gateway.static final classHttpServerErrorExceptionfor status HTTP 504 Gateway Timeout.static final classHttpServerErrorExceptionfor status HTTP 500 Internal Server Error.static final classHttpServerErrorExceptionfor status HTTP 501 Not Implemented.static final classHttpServerErrorExceptionfor status HTTP 503 Service Unavailable.classAbstract base class for exceptions based on anHttpStatusCode.classException thrown when an I/O error occurs.classCommon base class for exceptions that contain actual HTTP response data.classRaised when no suitableHttpMessageConvertercould be found to extract the response.classException thrown when an unknown (or custom) HTTP status code is received.Method parameters in org.springframework.web.client with type arguments of type RestClientExceptionModifier and TypeMethodDescriptionvoidExtractingResponseErrorHandler.setSeriesMapping(Map<HttpStatus.Series, Class<? extends RestClientException>> seriesMapping) Deprecated, for removal: This API element is subject to removal in a future version.Set the mapping from HTTP status series toRestClientExceptionsubclass.voidExtractingResponseErrorHandler.setStatusMapping(Map<HttpStatusCode, Class<? extends RestClientException>> statusMapping) Deprecated, for removal: This API element is subject to removal in a future version.Set the mapping from HTTP status code toRestClientExceptionsubclass.Methods in org.springframework.web.client that throw RestClientExceptionModifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Delete the resources at the specified URI.voidDeprecated, for removal: This API element is subject to removal in a future version.Delete the resources at the specified URI.voidDeprecated, for removal: This API element is subject to removal in a future version.Delete the resources at the specified URL.voidDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.protected <T> @Nullable TRestTemplate.doExecute(URI url, @Nullable String uriTemplate, @Nullable HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor) Deprecated, for removal: This API element is subject to removal in a future version.Execute the given method on the provided URI.<T> ResponseEntity<T> RestOperations.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(URI url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(URI url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(RequestEntity<?> requestEntity, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.Execute the request specified in the givenRequestEntityand return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(RequestEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.Execute the request specified in the givenRequestEntityand return the response asResponseEntity.<T> ResponseEntity<T> RestTemplate.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> ResponseEntity<T> RestTemplate.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> ResponseEntity<T> RestTemplate.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> ResponseEntity<T> RestTemplate.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> ResponseEntity<T> RestTemplate.exchange(URI url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.<T> ResponseEntity<T> RestTemplate.exchange(URI url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.<T> ResponseEntity<T> RestTemplate.exchange(RequestEntity<?> entity, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.<T> ResponseEntity<T> RestTemplate.exchange(RequestEntity<?> entity, ParameterizedTypeReference<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.<T> @Nullable TRestOperations.execute(String uriTemplate, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> @Nullable TRestOperations.execute(String uriTemplate, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> @Nullable TRestOperations.execute(URI url, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor) Deprecated, for removal: This API element is subject to removal in a future version.Execute the HTTP method to the given URL, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> @Nullable TRestTemplate.execute(String uriTemplate, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> @Nullable TRestTemplate.execute(String uriTemplate, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> @Nullable TRestTemplate.execute(URI url, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor) Deprecated, for removal: This API element is subject to removal in a future version.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, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Retrieve an entity by doing a GET on the specified URL.<T> ResponseEntity<T> RestOperations.getForEntity(String url, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Retrieve a representation by doing a GET on the URI template.<T> ResponseEntity<T> RestOperations.getForEntity(URI url, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.Retrieve a representation by doing a GET on the URL.<T> ResponseEntity<T> RestTemplate.getForEntity(String url, Class<T> responseType, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> ResponseEntity<T> RestTemplate.getForEntity(String url, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> ResponseEntity<T> RestTemplate.getForEntity(URI url, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.<T> @Nullable TRestOperations.getForObject(String url, Class<T> responseType, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Retrieve a representation by doing a GET on the specified URL.<T> @Nullable TRestOperations.getForObject(String url, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Retrieve a representation by doing a GET on the URI template.<T> @Nullable TRestOperations.getForObject(URI url, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.Retrieve a representation by doing a GET on the URL.<T> @Nullable TRestTemplate.getForObject(String url, Class<T> responseType, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> @Nullable TRestTemplate.getForObject(String url, Class<T> responseType, Map<String, ?> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> @Nullable TRestTemplate.getForObject(URI url, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.RestOperations.headForHeaders(String url, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Retrieve all headers of the resource specified by the URI template.Deprecated, for removal: This API element is subject to removal in a future version.Retrieve all headers of the resource specified by the URI template.RestOperations.headForHeaders(URI url) Deprecated, for removal: This API element is subject to removal in a future version.Retrieve all headers of the resource specified by the URL.RestTemplate.headForHeaders(String url, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.RestTemplate.headForHeaders(URI url) Deprecated, for removal: This API element is subject to removal in a future version.RestOperations.optionsForAllow(String url, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Return the value of theAllowheader for the given URI.Deprecated, for removal: This API element is subject to removal in a future version.Return the value of theAllowheader for the given URI.RestOperations.optionsForAllow(URI url) Deprecated, for removal: This API element is subject to removal in a future version.Return the value of theAllowheader for the given URL.RestTemplate.optionsForAllow(String url, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.RestTemplate.optionsForAllow(URI url) Deprecated, for removal: This API element is subject to removal in a future version.<T> @Nullable TRestOperations.patchForObject(String url, @Nullable Object request, Class<T> responseType, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Update a resource by PATCHing the given object to the URI template, and return the representation found in the response.<T> @Nullable TRestOperations.patchForObject(String url, @Nullable Object request, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Update a resource by PATCHing the given object to the URI template, and return the representation found in the response.<T> @Nullable TRestOperations.patchForObject(URI url, @Nullable Object request, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.Update a resource by PATCHing the given object to the URL, and return the representation found in the response.<T> @Nullable TRestTemplate.patchForObject(String url, @Nullable Object request, Class<T> responseType, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> @Nullable TRestTemplate.patchForObject(String url, @Nullable Object request, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> @Nullable TRestTemplate.patchForObject(URI url, @Nullable Object request, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.<T> ResponseEntity<T> RestOperations.postForEntity(String url, @Nullable Object request, Class<T> responseType, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Create a new resource by POSTing the given object to the URI template, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.postForEntity(String url, @Nullable Object request, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Create a new resource by POSTing the given object to the URI template, and return the response asHttpEntity.<T> ResponseEntity<T> RestOperations.postForEntity(URI url, @Nullable Object request, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.Create a new resource by POSTing the given object to the URL, and return the response asResponseEntity.<T> ResponseEntity<T> RestTemplate.postForEntity(String url, @Nullable Object request, Class<T> responseType, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> ResponseEntity<T> RestTemplate.postForEntity(String url, @Nullable Object request, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> ResponseEntity<T> RestTemplate.postForEntity(URI url, @Nullable Object request, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.RestOperations.postForLocation(String url, @Nullable Object request, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Create a new resource by POSTing the given object to the URI template, and return the value of theLocationheader.RestOperations.postForLocation(String url, @Nullable Object request, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Create a new resource by POSTing the given object to the URI template, and return the value of theLocationheader.RestOperations.postForLocation(URI url, @Nullable Object request) Deprecated, for removal: This API element is subject to removal in a future version.Create a new resource by POSTing the given object to the URL, and return the value of theLocationheader.RestTemplate.postForLocation(String url, @Nullable Object request, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.RestTemplate.postForLocation(String url, @Nullable Object request, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.RestTemplate.postForLocation(URI url, @Nullable Object request) Deprecated, for removal: This API element is subject to removal in a future version.<T> @Nullable TRestOperations.postForObject(String url, @Nullable Object request, Class<T> responseType, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Create a new resource by POSTing the given object to the URI template, and return the representation found in the response.<T> @Nullable TRestOperations.postForObject(String url, @Nullable Object request, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Create a new resource by POSTing the given object to the URI template, and return the representation found in the response.<T> @Nullable TRestOperations.postForObject(URI url, @Nullable Object request, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.Create a new resource by POSTing the given object to the URL, and return the representation found in the response.<T> @Nullable TRestTemplate.postForObject(String url, @Nullable Object request, Class<T> responseType, @Nullable Object... uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> @Nullable TRestTemplate.postForObject(String url, @Nullable Object request, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.<T> @Nullable TRestTemplate.postForObject(URI url, @Nullable Object request, Class<T> responseType) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Create or update a resource by PUTting the given object to the URI.voidRestOperations.put(String url, @Nullable Object request, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new resource by PUTting the given object to URI template.voidDeprecated, for removal: This API element is subject to removal in a future version.Creates a new resource by PUTting the given object to URL.voidDeprecated, for removal: This API element is subject to removal in a future version.voidRestTemplate.put(String url, @Nullable Object request, Map<String, ? extends @Nullable Object> uriVariables) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.
HttpClientErrorException.UnprocessableContent