Package org.springframework.web.client
@NonNullApi
@NonNullFields
package org.springframework.web.client
Core package of the client-side web support.
Provides a RestTemplate class and various callback interfaces.
-
ClassDescriptionSpring's default implementation of the
ResponseErrorHandler
interface.Implementation ofResponseErrorHandler
that usesHttpMessageConverters
to convert HTTP error responses toRestClientExceptions
.Exception thrown when an HTTP 4xx is received.HttpClientErrorException
for status HTTP 400 Bad Request.HttpClientErrorException
for status HTTP 409 Conflict.HttpClientErrorException
for status HTTP 403 Forbidden.HttpClientErrorException
for status HTTP 410 Gone.HttpClientErrorException
for status HTTP 405 Method Not Allowed.HttpClientErrorException
for status HTTP 406 Not Acceptable.HttpClientErrorException
for status HTTP 404 Not Found.HttpClientErrorException
for status HTTP 429 Too Many Requests.HttpClientErrorException
for status HTTP 401 Unauthorized.HttpClientErrorException
for status HTTP 422 Unprocessable Entity.HttpClientErrorException
for status HTTP 415 Unsupported Media Type.Response extractor that uses the given entity converters to convert the response into a typeT
.Exception thrown when an HTTP 5xx is received.HttpServerErrorException
for status HTTP HTTP 502 Bad Gateway.HttpServerErrorException
for status HTTP 504 Gateway Timeout.HttpServerErrorException
for status HTTP 500 Internal Server Error.HttpServerErrorException
for status HTTP 501 Not Implemented.HttpServerErrorException
for status HTTP 503 Service Unavailable.Abstract base class for exceptions based on anHttpStatusCode
.Callback interface for code that operates on aClientHttpRequest
.Exception thrown when an I/O error occurs.Strategy interface used by theRestTemplate
to determine whether a particular response has an error or not.Generic callback interface used byRestTemplate
's retrieval methods.Base class for exceptions thrown byRestTemplate
in case a request fails because of a server error response, as determined viaResponseErrorHandler.hasError(ClientHttpResponse)
, failure to decode the response, or a low level I/O error.Common base class for exceptions that contain actual HTTP response data.Interface specifying a basic set of RESTful operations.Synchronous client to perform HTTP requests, exposing a simple, template method API over underlying HTTP client libraries such as the JDKHttpURLConnection
, Apache HttpComponents, and others.Raised when no suitableHttpMessageConverter
could be found to extract the response.Exception thrown when an unknown (or custom) HTTP status code is received.