Package | Description |
---|---|
org.springframework.http |
Contains a basic abstraction over client/server-side HTTP.
|
org.springframework.web.client |
Core package of the client-side web support.
|
Modifier and Type | Method and Description |
---|---|
static HttpStatus.Series |
HttpStatus.Series.resolve(int statusCode)
Resolve the given status code to an
HttpStatus.Series , if possible. |
HttpStatus.Series |
HttpStatus.series()
Return the HTTP status series of this status code.
|
static HttpStatus.Series |
HttpStatus.Series.valueOf(HttpStatus status)
Deprecated.
as of 5.3, in favor of invoking
HttpStatus.series() directly |
static HttpStatus.Series |
HttpStatus.Series.valueOf(int statusCode)
Return the
Series enum constant for the supplied status code. |
static HttpStatus.Series |
HttpStatus.Series.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatus.Series[] |
HttpStatus.Series.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
ExtractingResponseErrorHandler.setSeriesMapping(Map<HttpStatus.Series,Class<? extends RestClientException>> seriesMapping)
Set the mapping from HTTP status series to
RestClientException subclass. |