T
- Type of deserialized instance@FunctionalInterface public interface ResponseDeserializer<T>
T
Modifier and Type | Method and Description |
---|---|
T |
deserialize(ResponseContext responseContext)
Method receives httpEntity of the response then deserialized to type
T |
default String |
deserializeFailure(ResponseContext responseContext) |
static ResponseDeserializer<String> |
ignorableDeserializer()
For ignore response deserialization you can use instance
|
T deserialize(ResponseContext responseContext) throws IOException, ResponseDeserializeException
T
responseContext
- 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
.ResponseDeserializeException
- If Cannot deserialize contentdefault String deserializeFailure(ResponseContext responseContext) throws IOException
responseContext
- the response context.IOException
- if an error occurs reading the input streamstatic ResponseDeserializer<String> ignorableDeserializer()
Copyright © 2017. All rights reserved.