Package org.springframework.web.client
Core package of the client-side web support. Provides a RestTemplate class and various callback interfaces.
Interface Summary Interface Description AsyncRequestCallback Callback interface for code that operates on anAsyncClientHttpRequest
.AsyncRestOperations Interface specifying a basic set of asynchronous RESTful operations.RequestCallback Callback interface for code that operates on aClientHttpRequest
.ResponseErrorHandler Strategy interface used by theRestTemplate
to determine whether a particular response has an error or not.ResponseExtractor<T> Generic callback interface used byRestTemplate
's retrieval methods Implementations of this interface perform the actual work of extracting data from aClientHttpResponse
, but don't need to worry about exception handling or closing resources.RestOperations Interface specifying a basic set of RESTful operations.Class Summary Class Description AsyncRestTemplate Spring's central class for asynchronous client-side HTTP access. Exposes similar methods asRestTemplate
, but returnsListenableFuture
wrappers as opposed to concrete results.DefaultResponseErrorHandler Spring's default implementation of theResponseErrorHandler
interface.HttpMessageConverterExtractor<T> Response extractor that uses the given entity converters to convert the response into a typeT
.RestTemplate Spring's central class for synchronous client-side HTTP access. It simplifies communication with HTTP servers, and enforces RESTful principles.Exception Summary Exception Description HttpClientErrorException Exception thrown when an HTTP 4xx is received.HttpServerErrorException Exception thrown when an HTTP 5xx is received.HttpStatusCodeException Abstract base class for exceptions based on anHttpStatus
.ResourceAccessException Exception thrown when an I/O error occurs.RestClientException Base class for exceptions thrown byRestTemplate
whenever it encounters client-side HTTP errors.RestClientResponseException Common base class for exceptions that contain actual HTTP response data.UnknownHttpStatusCodeException Exception thrown when an unknown (or custom) HTTP status code is received.