Class CrafterJackson2MessageConverter

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.craftercms.commons.jackson.mvc.CrafterJackson2MessageConverter
All Implemented Interfaces:
org.springframework.http.converter.GenericHttpMessageConverter<Object>, org.springframework.http.converter.HttpMessageConverter<Object>

public class CrafterJackson2MessageConverter extends org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.fasterxml.jackson.databind.ser.FilterProvider
     
     
    protected String
     
     

    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
    CrafterJackson2MessageConverter(com.fasterxml.jackson.databind.ser.FilterProvider filter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    void
    setJsonPrefix(String jsonPrefix)
     
    void
     
    protected void
    writeInternal(Object object, Type type, org.springframework.http.HttpOutputMessage outputMessage)
     

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

    getMediaTypesForProblemDetail, 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

    canWrite, 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
  • Field Details

    • jsonPrefix

      protected String jsonPrefix
    • filter

      protected com.fasterxml.jackson.databind.ser.FilterProvider filter
    • injectValueFactory

      protected InjectValueFactory injectValueFactory
    • securePropertyHandler

      protected SecurePropertyHandler securePropertyHandler
  • Constructor Details

    • CrafterJackson2MessageConverter

      public CrafterJackson2MessageConverter(com.fasterxml.jackson.databind.ser.FilterProvider filter)
  • Method Details

    • writeInternal

      protected void writeInternal(Object object, 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
    • getJsonPrefix

      public String getJsonPrefix()
    • setJsonPrefix

      public void setJsonPrefix(String jsonPrefix)
      Overrides:
      setJsonPrefix in class org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
    • setSecurePropertyHandler

      public void setSecurePropertyHandler(SecurePropertyHandler securePropertyHandler)
    • setInjectValueFactory

      public void setInjectValueFactory(InjectValueFactory injectValueFactory)