Top Description Constructors Methods
org.springframework.http.client

public abstract Class AbstractClientHttpResponse

extends Object
implements ClientHttpResponse
Class Inheritance
All Implemented Interfaces
org.springframework.http.client.ClientHttpResponse, java.io.Closeable, java.lang.AutoCloseable, org.springframework.http.HttpInputMessage, org.springframework.http.HttpMessage
Annotations
@Deprecated
since:6.0
forRemoval:true
Imports
java.io.IOException, org.springframework.http.HttpStatusCode

Deprecated

for removal since 6.0.

as of 6.0, with no direct replacement; scheduled for removal in 6.2

Abstract base for ClientHttpResponse.
Author
Arjen Poutsma
Since
3.1.1

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public HttpStatusCode
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractClientHttpResponseback to summary
public AbstractClientHttpResponse()

Method Detail

getStatusCodeback to summary
public HttpStatusCode getStatusCode() throws IOException

Implements org.springframework.http.client.ClientHttpResponse.getStatusCode.

Doc from org.springframework.http.client.ClientHttpResponse.getStatusCode.

Get the HTTP status code as an HttpStatusCode.

Returns:HttpStatusCode

the HTTP status as HttpStatusCode value (never null)

Annotations
@Override
@SuppressWarnings:removal
Exceptions
IOException:
in case of I/O errors