public abstract class AbstractClientHttpResponse extends java.lang.Object implements ClientHttpResponse
ClientHttpResponse.| Constructor and Description |
|---|
AbstractClientHttpResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this response, freeing any resources created.
|
protected abstract void |
closeInternal()
Abstract template method that closes the response.
|
java.io.InputStream |
getBody()
Return the body of the message as an input stream.
|
protected abstract java.io.InputStream |
getBodyInternal()
Abstract template method that returns the body.
|
HttpStatus |
getStatusCode()
Return the HTTP status code of the response.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRawStatusCode, getStatusTextgetHeaderspublic HttpStatus getStatusCode() throws java.io.IOException
ClientHttpResponsegetStatusCode in interface ClientHttpResponsejava.io.IOException - in case of I/O errorspublic java.io.InputStream getBody()
throws java.io.IOException
HttpInputMessagegetBody in interface HttpInputMessagejava.io.IOException - in case of I/O Errorspublic void close()
ClientHttpResponseclose in interface ClientHttpResponseprotected abstract java.io.InputStream getBodyInternal()
throws java.io.IOException
java.io.IOExceptionprotected abstract void closeInternal()