Package feign.codec
Class Decoder.Default
- java.lang.Object
-
- feign.codec.StringDecoder
-
- feign.codec.Decoder.Default
-
- All Implemented Interfaces:
Decoder
- Enclosing interface:
- Decoder
public static class Decoder.Default extends StringDecoder
Default implementation ofDecoder
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface feign.codec.Decoder
Decoder.Default
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
decode(Response response, java.lang.reflect.Type type)
Decodes an http response into an object corresponding to itsgeneric return type
.
-
-
-
Method Detail
-
decode
public java.lang.Object decode(Response response, java.lang.reflect.Type type) throws java.io.IOException
Description copied from interface:Decoder
Decodes an http response into an object corresponding to itsgeneric return type
. If you need to wrap exceptions, please do so viaDecodeException
.- Specified by:
decode
in interfaceDecoder
- Overrides:
decode
in classStringDecoder
- Parameters:
response
- the response to decodetype
-generic return type
of the method corresponding to thisresponse
.- Returns:
- instance of
type
- Throws:
java.io.IOException
- will be propagated safely to the caller.
-
-