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
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.client.ClientHttpResponse
close, getRawStatusCode, getStatusTextMethods inherited from interface org.springframework.http.HttpInputMessage
getBodyMethods inherited from interface org.springframework.http.HttpMessage
getHeaders
-
Constructor Details
-
AbstractClientHttpResponse
public AbstractClientHttpResponse()
-
-
Method Details
-
getStatusCode
Description copied from interface:ClientHttpResponseGet the HTTP status code as anHttpStatusenum value.For status codes not supported by
HttpStatus, useClientHttpResponse.getRawStatusCode()instead.- Specified by:
getStatusCodein interfaceClientHttpResponse- Returns:
- the HTTP status as an HttpStatus enum value (never
null) - Throws:
IOException- in case of I/O errors- See Also:
-