public class SerializingHttpMessageConverter
extends org.springframework.http.converter.AbstractHttpMessageConverter<java.io.Serializable>
HttpMessageConverter
implementation for Serializable
instances.Constructor and Description |
---|
SerializingHttpMessageConverter()
Creates a new instance of the
SerializingHttpMessageConverter . |
Modifier and Type | Method and Description |
---|---|
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) |
public SerializingHttpMessageConverter()
SerializingHttpMessageConverter
.public boolean supports(java.lang.Class<?> clazz)
supports
in class org.springframework.http.converter.AbstractHttpMessageConverter<java.io.Serializable>
public boolean canWrite(java.lang.Class<?> clazz, org.springframework.http.MediaType mediaType)
canWrite
in interface org.springframework.http.converter.HttpMessageConverter<java.io.Serializable>
canWrite
in class org.springframework.http.converter.AbstractHttpMessageConverter<java.io.Serializable>
public java.io.Serializable readInternal(java.lang.Class clazz, org.springframework.http.HttpInputMessage inputMessage) throws java.io.IOException
readInternal
in class org.springframework.http.converter.AbstractHttpMessageConverter<java.io.Serializable>
java.io.IOException
protected void writeInternal(java.io.Serializable object, org.springframework.http.HttpOutputMessage outputMessage) throws java.io.IOException
writeInternal
in class org.springframework.http.converter.AbstractHttpMessageConverter<java.io.Serializable>
java.io.IOException