org.springframework.integration.http.converter
Class SerializingHttpMessageConverter

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

public class SerializingHttpMessageConverter
extends AbstractHttpMessageConverter<java.io.Serializable>

An HttpMessageConverter implementation for Serializable instances.

Since:
2.0

Field Summary
 
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
 
Constructor Summary
SerializingHttpMessageConverter()
          Creates a new instance of the SerializingHttpMessageConverter.
 
Method Summary
 boolean canRead(java.lang.Class<?> clazz, MediaType mediaType)
           
 boolean canWrite(java.lang.Class<?> clazz, MediaType mediaType)
           
 java.io.Serializable readInternal(java.lang.Class clazz, HttpInputMessage inputMessage)
           
 boolean supports(java.lang.Class<?> clazz)
           
protected  void writeInternal(java.io.Serializable object, HttpOutputMessage outputMessage)
           
 
Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
canRead, canWrite, getContentLength, getDefaultContentType, getSupportedMediaTypes, read, setSupportedMediaTypes, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializingHttpMessageConverter

public SerializingHttpMessageConverter()
Creates a new instance of the SerializingHttpMessageConverter.

Method Detail

supports

public boolean supports(java.lang.Class<?> clazz)
Specified by:
supports in class AbstractHttpMessageConverter<java.io.Serializable>

canRead

public boolean canRead(java.lang.Class<?> clazz,
                       MediaType mediaType)
Specified by:
canRead in interface HttpMessageConverter<java.io.Serializable>
Overrides:
canRead in class AbstractHttpMessageConverter<java.io.Serializable>

canWrite

public boolean canWrite(java.lang.Class<?> clazz,
                        MediaType mediaType)
Specified by:
canWrite in interface HttpMessageConverter<java.io.Serializable>
Overrides:
canWrite in class AbstractHttpMessageConverter<java.io.Serializable>

readInternal

public java.io.Serializable readInternal(java.lang.Class clazz,
                                         HttpInputMessage inputMessage)
                                  throws java.io.IOException
Specified by:
readInternal in class AbstractHttpMessageConverter<java.io.Serializable>
Throws:
java.io.IOException

writeInternal

protected void writeInternal(java.io.Serializable object,
                             HttpOutputMessage outputMessage)
                      throws java.io.IOException
Specified by:
writeInternal in class AbstractHttpMessageConverter<java.io.Serializable>
Throws:
java.io.IOException