public class StringDecoder extends Object implements Decoder
Decoder.Default| Constructor and Description |
|---|
StringDecoder() |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(Response response,
Type type)
Decodes an http response into an object corresponding to its
generic return type. |
public Object decode(Response response, Type type) throws IOException
Decodergeneric return type. If you need to
wrap exceptions, please do so via DecodeException.decode in interface Decoderresponse - the response to decodetype - generic return type of the
method corresponding to this response.typeIOException - will be propagated safely to the caller.Copyright © 2012–2021 OpenFeign. All rights reserved.