Spring Integration

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:
org.springframework.http.converter.HttpMessageConverter<java.io.Serializable>

public class SerializingHttpMessageConverter
extends org.springframework.http.converter.AbstractHttpMessageConverter<java.io.Serializable>

An HttpMessageConverter implementation for Serializable instances.

Since:
2.0
Author:
Mark Fisher, Gary Russell

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 canWrite(java.lang.Class<?> clazz, org.springframework.http.MediaType mediaType)
           
 java.io.Serializable readInternal(java.lang.Class clazz, org.springframework.http.HttpInputMessage inputMessage)
           
 boolean supports(java.lang.Class<?> clazz)
           
protected  void writeInternal(java.io.Serializable object, org.springframework.http.HttpOutputMessage outputMessage)
           
 
Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
canRead, 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 org.springframework.http.converter.AbstractHttpMessageConverter<java.io.Serializable>

canWrite

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

readInternal

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

writeInternal

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

Spring Integration