Package feign.gson

Class GsonDecoder

  • All Implemented Interfaces:
    feign.codec.Decoder

    public class GsonDecoder
    extends java.lang.Object
    implements feign.codec.Decoder
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface feign.codec.Decoder

        feign.codec.Decoder.Default
    • Constructor Summary

      Constructors 
      Constructor Description
      GsonDecoder()  
      GsonDecoder​(com.google.gson.Gson gson)  
      GsonDecoder​(java.lang.Iterable<com.google.gson.TypeAdapter<?>> adapters)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object decode​(feign.Response response, java.lang.reflect.Type type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GsonDecoder

        public GsonDecoder​(java.lang.Iterable<com.google.gson.TypeAdapter<?>> adapters)
      • GsonDecoder

        public GsonDecoder()
      • GsonDecoder

        public GsonDecoder​(com.google.gson.Gson gson)
    • Method Detail

      • decode

        public java.lang.Object decode​(feign.Response response,
                                       java.lang.reflect.Type type)
                                throws java.io.IOException
        Specified by:
        decode in interface feign.codec.Decoder
        Throws:
        java.io.IOException