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 Deprecated. as of Spring 5.0, in favor ofExchangeFilterFunction
AsyncRestOperations Deprecated. as of Spring 5.0, in favor ofWebClient
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 Deprecated. as of Spring 5.0, in favor ofWebClient
DefaultResponseErrorHandler Spring's default implementation of theResponseErrorHandler
interface.ExtractingResponseErrorHandler Implementation ofResponseErrorHandler
that usesHttpMessageConverters
to convert HTTP error responses toRestClientExceptions
.HttpMessageConverterExtractor<T> Response extractor that uses the given entity converters to convert the response into a typeT
.RestTemplate 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.