public static class Decoder.Default extends StringDecoder
Decoder.Decoder.Default| Constructor and Description |
|---|
Default() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
decode(Response response,
java.lang.reflect.Type type)
Decodes an http response into an object corresponding to its
generic return type. |
public java.lang.Object decode(Response response, java.lang.reflect.Type type) throws java.io.IOException
Decodergeneric return type. If you need to wrap
exceptions, please do so via DecodeException.decode in interface Decoderdecode in class StringDecoderresponse - the response to decodetype - generic return type of
the method corresponding to this response.typejava.io.IOException - will be propagated safely to the caller.