Class VegaJsonHttpMessageConverter

  • All Implemented Interfaces:
    org.springframework.http.converter.GenericHttpMessageConverter<Object>, org.springframework.http.converter.HttpMessageConverter<Object>

    public class VegaJsonHttpMessageConverter
    extends org.springframework.http.converter.json.AbstractJsonHttpMessageConverter
    Implementation of HttpMessageConverter that can read and write JSON using the Vega JsonEngine
    • Field Summary

      • Fields inherited from class org.springframework.http.converter.json.AbstractJsonHttpMessageConverter

        DEFAULT_CHARSET
      • Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Object readInternal​(Type resolvedType, Reader reader)  
      protected void writeInternal​(Object o, Type type, Writer writer)  
      • Methods inherited from class org.springframework.http.converter.json.AbstractJsonHttpMessageConverter

        read, readInternal, setJsonPrefix, setPrefixJson, writeInternal
      • Methods inherited from class org.springframework.http.converter.AbstractGenericHttpMessageConverter

        canRead, canWrite, supports, write, writeInternal
      • Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter

        addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
      • Methods inherited from interface org.springframework.http.converter.HttpMessageConverter

        canRead, canWrite, getSupportedMediaTypes, getSupportedMediaTypes, read, write
    • Constructor Detail

      • VegaJsonHttpMessageConverter

        @Inject
        public VegaJsonHttpMessageConverter​(JsonEngine jsonEngine)
        Construct a new converter
        Parameters:
        jsonEngine - vertigo-vega json component
    • Method Detail

      • readInternal

        protected Object readInternal​(Type resolvedType,
                                      Reader reader)
                               throws Exception
        Specified by:
        readInternal in class org.springframework.http.converter.json.AbstractJsonHttpMessageConverter
        Throws:
        Exception
      • writeInternal

        protected void writeInternal​(Object o,
                                     Type type,
                                     Writer writer)
                              throws Exception
        Specified by:
        writeInternal in class org.springframework.http.converter.json.AbstractJsonHttpMessageConverter
        Throws:
        Exception