T - Type of deserialized instancepublic interface ResponseBodyReader<T>
T| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(ResponseBodyReadableContext bodyReadableContext) |
T |
read(ResponseBodyReaderContext<T> bodyReaderContext)
Method receives httpEntity of the response then deserialized to type
T |
static ResponseBodyReader<String> |
stringReader() |
boolean isReadable(ResponseBodyReadableContext bodyReadableContext)
T read(ResponseBodyReaderContext<T> bodyReaderContext) throws IOException, ResponseBodyReaderException
TbodyReaderContext - the response context.IOException - If the stream could not be created or error occurs reading the input stream.UnsupportedOperationException - If entity content cannot be represented as InputStream.ResponseBodyReaderException - If Cannot deserialize contentstatic ResponseBodyReader<String> stringReader()
Copyright © 2021. All rights reserved.