Package feign.codec

Class StringDecoder

  • All Implemented Interfaces:
    Decoder
    Direct Known Subclasses:
    Decoder.Default

    public class StringDecoder
    extends java.lang.Object
    implements Decoder
    • Constructor Summary

      Constructors 
      Constructor Description
      StringDecoder()  
    • 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 its generic return type.
      • Methods inherited from class java.lang.Object

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

      • StringDecoder

        public StringDecoder()
    • 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 its generic return type. If you need to wrap exceptions, please do so via DecodeException.
        Specified by:
        decode in interface Decoder
        Parameters:
        response - the response to decode
        type - generic return type of the method corresponding to this response.
        Returns:
        instance of type
        Throws:
        java.io.IOException - will be propagated safely to the caller.