public interface ResponseBodyReaderContext<T> extends ResponseBodyReadableContext
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent() |
String |
getContentAsString()
Deprecated.
Will be removed in future versions
|
org.apache.http.HttpEntity |
getHttpEntity() |
Class<T> |
getType() |
getContentLength, getContentType, getGenericType, getStatusCode, getStatusLine, hasEntityInputStream getContent() throws IOException
IOException - if the stream could not be created.Class<T> getType()
getType in interface ResponseBodyReadableContext@Deprecated String getContentAsString() throws IOException
StringIOException - if the stream could not be created or
if the first byte cannot be read for any reason other than the end of the file,
if the input stream has been closed, or if some other I/OInvalidContentLengthException - If content length exceeds Integer.MAX_VALUEUnsupportedEncodingException - If the named charset is not supportedorg.apache.http.HttpEntity getHttpEntity()
HttpEntityCopyright © 2021. All rights reserved.