Class LoggingJacksonResponseBodyConverter

  • All Implemented Interfaces:
    retrofit2.Converter<okhttp3.ResponseBody,​java.lang.Object>

    public class LoggingJacksonResponseBodyConverter
    extends java.lang.Object
    implements retrofit2.Converter<okhttp3.ResponseBody,​java.lang.Object>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface retrofit2.Converter

        retrofit2.Converter.Factory
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.fasterxml.jackson.databind.ObjectMapper mapper  
      protected java.lang.reflect.Type type  
    • Constructor Summary

      Constructors 
      Constructor Description
      LoggingJacksonResponseBodyConverter​(com.fasterxml.jackson.databind.ObjectMapper mapper, java.lang.reflect.Type type)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object convert​(okhttp3.ResponseBody value)  
      • Methods inherited from class java.lang.Object

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

      • mapper

        protected com.fasterxml.jackson.databind.ObjectMapper mapper
      • type

        protected java.lang.reflect.Type type
    • Constructor Detail

      • LoggingJacksonResponseBodyConverter

        public LoggingJacksonResponseBodyConverter​(com.fasterxml.jackson.databind.ObjectMapper mapper,
                                                   java.lang.reflect.Type type)
    • Method Detail

      • convert

        public java.lang.Object convert​(okhttp3.ResponseBody value)
                                 throws java.io.IOException
        Specified by:
        convert in interface retrofit2.Converter<okhttp3.ResponseBody,​java.lang.Object>
        Throws:
        java.io.IOException