Package org.springframework.http.client
Class AbstractClientHttpResponse
java.lang.Object
org.springframework.http.client.AbstractClientHttpResponse
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ClientHttpResponse
,HttpInputMessage
,HttpMessage
Abstract base for
ClientHttpResponse
.- Since:
- 3.1.1
- Author:
- Arjen Poutsma
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.http.client.ClientHttpResponse
close, getRawStatusCode, getStatusText
Methods inherited from interface org.springframework.http.HttpInputMessage
getBody
Methods inherited from interface org.springframework.http.HttpMessage
getHeaders
-
Constructor Details
-
AbstractClientHttpResponse
public AbstractClientHttpResponse()
-
-
Method Details
-
getStatusCode
Description copied from interface:ClientHttpResponse
Get the HTTP status code as anHttpStatus
enum value.For status codes not supported by
HttpStatus
, useClientHttpResponse.getRawStatusCode()
instead.- Specified by:
getStatusCode
in interfaceClientHttpResponse
- Returns:
- the HTTP status as an HttpStatus enum value (never
null
) - Throws:
IOException
- in case of I/O errors- See Also:
-