Class AlfrescoJackson2HttpMessageConverter<T>

java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<Object>
org.springframework.http.converter.AbstractGenericHttpMessageConverter<Object>
org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter
org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
org.activiti.cloud.alfresco.converter.json.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

    defaultObjectMapper

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

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    AlfrescoJackson2HttpMessageConverter(PagedModelConverter pagedCollectionModelConverter, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
     
  • Method Summary

    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

    getMediaTypesForProblemDetail, setJsonPrefix, setPrefixJson, writePrefix

    Methods inherited from class org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter

    canRead, canRead, canWrite, customizeReader, customizeWriter, getCharset, getContentLength, getDefaultContentType, getJavaType, getJsonEncoding, getObjectMapper, getObjectMappersForType, getSupportedMediaTypes, logWarningIfNecessary, read, readInternal, registerObjectMappersForType, setObjectMapper, setPrettyPrint, setSupportedMediaTypes, supportsRepeatableWrites, 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, write

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.http.converter.HttpMessageConverter

    getSupportedMediaTypes, read, write
  • Constructor Details

    • AlfrescoJackson2HttpMessageConverter

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

    • 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>