Class AbstractJsonUnmarshaller<T,​O,​R,​E extends java.io.IOException>

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractJsonUnmarshaller​(java.lang.Class<T> clazz, java.lang.Class<R> errorResponseClass, java.util.Map<java.lang.String,​java.lang.Object> injectionValues, java.util.Collection<com.fasterxml.jackson.databind.deser.DeserializationProblemHandler> problemHandlers)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract O _unmarshal​(java.io.InputStream inputStream)  
      protected abstract E createException​(R response)  
      protected java.io.IOException createIOException​(java.io.InputStream content, java.lang.Exception exception)  
      O unmarshal​(java.io.InputStream inputStream)  
      O unmarshal​(java.lang.String body)  
      protected T validate​(java.io.InputStream stream)  
      • Methods inherited from class java.lang.Object

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

      • AbstractJsonUnmarshaller

        public AbstractJsonUnmarshaller​(java.lang.Class<T> clazz,
                                        java.lang.Class<R> errorResponseClass,
                                        java.util.Map<java.lang.String,​java.lang.Object> injectionValues,
                                        java.util.Collection<com.fasterxml.jackson.databind.deser.DeserializationProblemHandler> problemHandlers)
    • Method Detail

      • unmarshal

        public final O unmarshal​(java.lang.String body)
                          throws java.io.IOException,
                                 E extends java.io.IOException
        Throws:
        java.io.IOException
      • unmarshal

        public final O unmarshal​(java.io.InputStream inputStream)
                          throws java.io.IOException,
                                 E extends java.io.IOException
        Throws:
        java.io.IOException
      • _unmarshal

        protected abstract O _unmarshal​(java.io.InputStream inputStream)
                                 throws java.io.IOException,
                                        E extends java.io.IOException
        Throws:
        java.io.IOException
      • validate

        protected T validate​(java.io.InputStream stream)
                      throws java.io.IOException,
                             E extends java.io.IOException
        Throws:
        java.io.IOException
      • createException

        protected abstract E createException​(R response)
      • createIOException

        protected java.io.IOException createIOException​(java.io.InputStream content,
                                                        java.lang.Exception exception)