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
Decoder
generic return type
. If you need to
wrap exceptions, please do so via DecodeException
.decode
in interface Decoder
response
- the response to decodetype
- generic return type
of the
method corresponding to this response
.type
IOException
- will be propagated safely to the caller.Copyright © 2012–2020 OpenFeign. All rights reserved.