Class AlfrescoJackson2HttpMessageConverter<T>

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

    public class AlfrescoJackson2HttpMessageConverter<T>
    extends org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
    • Field Summary

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

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

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canWrite​(Type type, Class<?> clazz, org.springframework.http.MediaType mediaType)  
      protected void defaultWriteInternal​(Object object, Type type, org.springframework.http.HttpOutputMessage outputMessage)  
      protected void writeInternal​(Object object, Type type, org.springframework.http.HttpOutputMessage outputMessage)  
      • Methods inherited from class org.springframework.http.converter.json.MappingJackson2HttpMessageConverter

        setJsonPrefix, setPrefixJson, writePrefix
      • Methods inherited from class org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter

        canRead, canRead, canWrite, getCharset, getContentLength, getDefaultContentType, getJavaType, getJsonEncoding, getObjectMapper, getObjectMappersForType, getSupportedMediaTypes, logWarningIfNecessary, read, readInternal, registerObjectMappersForType, setObjectMapper, setPrettyPrint, writeSuffix
      • Methods inherited from class org.springframework.http.converter.AbstractGenericHttpMessageConverter

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

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

        getSupportedMediaTypes, read, write
    • Constructor Detail

      • AlfrescoJackson2HttpMessageConverter

        public AlfrescoJackson2HttpMessageConverter​(PagedModelConverter pagedCollectionModelConverter,
                                                    com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • writeInternal

        protected void writeInternal​(Object object,
                                     @Nullable
                                     Type type,
                                     org.springframework.http.HttpOutputMessage outputMessage)
                              throws IOException,
                                     org.springframework.http.converter.HttpMessageNotWritableException
        Overrides:
        writeInternal in class org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter
        Throws:
        IOException
        org.springframework.http.converter.HttpMessageNotWritableException
      • defaultWriteInternal

        protected void defaultWriteInternal​(Object object,
                                            @Nullable
                                            Type type,
                                            org.springframework.http.HttpOutputMessage outputMessage)
                                     throws IOException
        Throws:
        IOException
      • canWrite

        public boolean canWrite​(Type type,
                                Class<?> clazz,
                                org.springframework.http.MediaType mediaType)
        Specified by:
        canWrite in interface org.springframework.http.converter.GenericHttpMessageConverter<T>
        Overrides:
        canWrite in class org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>