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) Set the mapping from HTTP status series toRestClientExceptionsubclass.voidExtractingResponseErrorHandler.setStatusMapping(Map<HttpStatusCode, Class<? extends RestClientException>> statusMapping) Set the mapping from HTTP status code toRestClientExceptionsubclass.Methods in org.springframework.web.client that throw RestClientExceptionModifier and TypeMethodDescriptionvoidDelete the resources at the specified URI.voidDelete the resources at the specified URI.voidDelete the resources at the specified URL.voidvoidvoidprotected <T> @Nullable TRestTemplate.doExecute(URI url, @Nullable String uriTemplate, @Nullable HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor) 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) 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) 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) 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) 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) 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) 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) Execute the request specified in the givenRequestEntityand return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(RequestEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) 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) <T> ResponseEntity<T> RestTemplate.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) <T> ResponseEntity<T> RestTemplate.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, @Nullable Object... uriVariables) <T> ResponseEntity<T> RestTemplate.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) <T> ResponseEntity<T> RestTemplate.exchange(URI url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, Class<T> responseType) <T> ResponseEntity<T> RestTemplate.exchange(URI url, HttpMethod method, @Nullable 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> @Nullable TRestOperations.execute(String uriTemplate, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, @Nullable Object... uriVariables) 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) 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) 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) 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) 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) 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) 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) 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, @Nullable Object... uriVariables) <T> ResponseEntity<T> RestTemplate.getForEntity(String url, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) <T> ResponseEntity<T> RestTemplate.getForEntity(URI url, Class<T> responseType) <T> @Nullable TRestOperations.getForObject(String url, Class<T> responseType, @Nullable Object... uriVariables) 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) Retrieve a representation by doing a GET on the URI template.<T> @Nullable TRestOperations.getForObject(URI url, Class<T> responseType) Retrieve a representation by doing a GET on the URL.<T> @Nullable TRestTemplate.getForObject(String url, Class<T> responseType, @Nullable Object... uriVariables) <T> @Nullable TRestTemplate.getForObject(String url, Class<T> responseType, Map<String, ?> uriVariables) <T> @Nullable TRestTemplate.getForObject(URI url, Class<T> responseType) RestOperations.headForHeaders(String url, @Nullable Object... uriVariables) Retrieve all headers of the resource specified by the URI template.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, @Nullable Object... uriVariables) RestTemplate.headForHeaders(URI url) RestOperations.optionsForAllow(String url, @Nullable Object... uriVariables) Return the value of theAllowheader for the given URI.Return the value of theAllowheader for the given URI.RestOperations.optionsForAllow(URI url) Return the value of theAllowheader for the given URL.RestTemplate.optionsForAllow(String url, @Nullable Object... uriVariables) RestTemplate.optionsForAllow(URI url) <T> @Nullable TRestOperations.patchForObject(String url, @Nullable Object request, Class<T> responseType, @Nullable Object... uriVariables) 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) 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) 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) <T> @Nullable TRestTemplate.patchForObject(String url, @Nullable Object request, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) <T> @Nullable TRestTemplate.patchForObject(URI url, @Nullable Object request, Class<T> responseType) <T> ResponseEntity<T> RestOperations.postForEntity(String url, @Nullable Object request, Class<T> responseType, @Nullable Object... uriVariables) 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) 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) 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) <T> ResponseEntity<T> RestTemplate.postForEntity(String url, @Nullable Object request, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) <T> ResponseEntity<T> RestTemplate.postForEntity(URI url, @Nullable Object request, Class<T> responseType) RestOperations.postForLocation(String url, @Nullable Object request, @Nullable Object... uriVariables) 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) 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) 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) RestTemplate.postForLocation(String url, @Nullable Object request, Map<String, ? extends @Nullable Object> uriVariables) RestTemplate.postForLocation(URI url, @Nullable Object request) <T> @Nullable TRestOperations.postForObject(String url, @Nullable Object request, Class<T> responseType, @Nullable Object... uriVariables) 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) 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) 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) <T> @Nullable TRestTemplate.postForObject(String url, @Nullable Object request, Class<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) <T> @Nullable TRestTemplate.postForObject(URI url, @Nullable Object request, Class<T> responseType) voidCreate 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) Creates a new resource by PUTting the given object to URI template.voidCreates a new resource by PUTting the given object to URL.voidvoidRestTemplate.put(String url, @Nullable Object request, Map<String, ? extends @Nullable Object> uriVariables) void
HttpClientErrorException.UnprocessableContent