Class NuxeoRequestConverter<T>

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

    public final class NuxeoRequestConverter<T>
    extends java.lang.Object
    implements retrofit2.Converter<T,​okhttp3.RequestBody>
    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 com.fasterxml.jackson.databind.JavaType javaType  
      protected com.fasterxml.jackson.databind.ObjectMapper objectMapper  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected NuxeoRequestConverter​(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.JavaType javaType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      okhttp3.RequestBody convert​(T value)  
      • 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
    • Constructor Detail

      • NuxeoRequestConverter

        protected NuxeoRequestConverter​(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                        com.fasterxml.jackson.databind.JavaType javaType)
    • Method Detail

      • convert

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