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, wait
getRawStatusCode, getStatusText
getHeaders
public HttpStatus getStatusCode() throws java.io.IOException
ClientHttpResponse
getStatusCode
in interface ClientHttpResponse
java.io.IOException
- in case of I/O errorspublic java.io.InputStream getBody() throws java.io.IOException
HttpInputMessage
getBody
in interface HttpInputMessage
java.io.IOException
- in case of I/O Errorspublic void close()
ClientHttpResponse
close
in interface ClientHttpResponse
protected abstract java.io.InputStream getBodyInternal() throws java.io.IOException
java.io.IOException
protected abstract void closeInternal()