Class NuxeoResponseConverter<T>

  • All Implemented Interfaces:
    retrofit2.Converter<okhttp3.ResponseBody,​T>

    public final class NuxeoResponseConverter<T>
    extends java.lang.Object
    implements retrofit2.Converter<okhttp3.ResponseBody,​T>
    Since:
    0.1
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface retrofit2.Converter

        retrofit2.Converter.Factory
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​java.lang.Class<?>> entityTypeToClass  
      protected com.fasterxml.jackson.databind.JavaType javaType  
      protected com.fasterxml.jackson.databind.ObjectMapper objectMapper  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected NuxeoResponseConverter​(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.JavaType javaType, java.util.Map<java.lang.String,​java.lang.Class<?>> entityTypeToClass)  
    • Method Summary

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

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

      • javaType

        protected final com.fasterxml.jackson.databind.JavaType javaType
      • objectMapper

        protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
      • entityTypeToClass

        protected final java.util.Map<java.lang.String,​java.lang.Class<?>> entityTypeToClass
    • Constructor Detail

      • NuxeoResponseConverter

        protected NuxeoResponseConverter​(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                         com.fasterxml.jackson.databind.JavaType javaType,
                                         java.util.Map<java.lang.String,​java.lang.Class<?>> entityTypeToClass)
    • Method Detail

      • convert

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