Top Description Interfaces Classes
[default module]

Package org.springframework.web.client

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Core package of the client-side web support. Provides the RestTemplate and RestClient.

Interface Summary

Modifier and TypeInterface and Description
public interface
RequestCallback

Callback interface for code that operates on a ClientHttpRequest.

public interface
ResponseErrorHandler

Strategy interface used by the RestTemplate to determine whether a particular response has an error or not.

public interface
ResponseExtractor<
the data type
T
>

Generic callback interface used by RestTemplate's retrieval methods.

public interface
RestClient

Client to perform HTTP requests, exposing a fluent, synchronous API over underlying HTTP client libraries such as the JDK HttpClient, Apache HttpComponents, and others.

public interface
RestOperations

Interface specifying a basic set of RESTful operations.

Class Summary

Modifier and TypeClass and Description
pack-priv class
ClientHttpResponseDecorator

Wrap and delegate to an existing ClientHttpResponse.

public class
DefaultResponseErrorHandler

Spring's default implementation of the ResponseErrorHandler interface.

pack-priv class
DefaultRestClient

The default implementation of RestClient, as created by the static factory methods.

pack-priv class
DefaultRestClientBuilder

Default implementation of RestClient.Builder.

public class
ExtractingResponseErrorHandler

Implementation of ResponseErrorHandler that uses HttpMessageConverters to convert HTTP error responses to RestClientExceptions.

public class
HttpClientErrorException

Exception thrown when an HTTP 4xx is received.

public class
HttpMessageConverterExtractor<
the data type
T
>

Response extractor that uses the given entity converters to convert the response into a type T.

public class
HttpServerErrorException

Exception thrown when an HTTP 5xx is received.

public abstract class
HttpStatusCodeException

Abstract base class for exceptions based on an HttpStatusCode.

pack-priv class
IntrospectingClientHttpResponse

Implementation of ClientHttpResponse that can not only check if the response has a message body, but also if its length is 0 (i.e. empty) by actually reading the input stream.

public class
ResourceAccessException

Exception thrown when an I/O error occurs.

public class
RestClientException

Base class for exceptions thrown by RestTemplate in case a request fails because of a server error response, as determined via ResponseErrorHandler#hasError(ClientHttpResponse), failure to decode the response, or a low level I/O error.

public class
RestClientResponseException

Common base class for exceptions that contain actual HTTP response data.

pack-priv abstract class
RestClientUtils

Internal methods shared between types in this package.

public class
RestTemplate

Synchronous client to perform HTTP requests, exposing a simple, template method API over underlying HTTP client libraries such as the JDK HttpURLConnection, Apache HttpComponents, and others.

pack-priv class
public class
UnknownContentTypeException

Raised when no suitable org.springframework.http.converter.HttpMessageConverter could be found to extract the response.

public class
UnknownHttpStatusCodeException

Exception thrown when an unknown (or custom) HTTP status code is received.