Class SerializingHttpMessageConverter

java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
org.springframework.integration.http.converter.SerializingHttpMessageConverter
All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<Serializable>

public class SerializingHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
An HttpMessageConverter implementation for Serializable instances.
Since:
2.0
  • Field Summary

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

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of the SerializingHttpMessageConverter.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
     
    readInternal(Class clazz, org.springframework.http.HttpInputMessage inputMessage)
     
    boolean
    supports(Class<?> clazz)
     
    protected void
    writeInternal(Serializable object, org.springframework.http.HttpOutputMessage outputMessage)
     

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

    addDefaultHeaders, canRead, canRead, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, supportsRepeatableWrites, 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
  • Constructor Details

    • SerializingHttpMessageConverter

      public SerializingHttpMessageConverter()
      Creates a new instance of the SerializingHttpMessageConverter.
  • Method Details

    • supports

      public boolean supports(Class<?> clazz)
      Specified by:
      supports in class org.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
    • canWrite

      public boolean canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
      Specified by:
      canWrite in interface org.springframework.http.converter.HttpMessageConverter<Serializable>
      Overrides:
      canWrite in class org.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
    • readInternal

      public Serializable readInternal(Class clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException
      Specified by:
      readInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
      Throws:
      IOException
    • writeInternal

      protected void writeInternal(Serializable object, org.springframework.http.HttpOutputMessage outputMessage) throws IOException
      Specified by:
      writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
      Throws:
      IOException