public class SerializingHttpMessageConverter extends AbstractHttpMessageConverter<Serializable>
HttpMessageConverter
implementation for Serializable
instances.logger
Constructor and Description |
---|
SerializingHttpMessageConverter()
Creates a new instance of the
SerializingHttpMessageConverter . |
Modifier and Type | Method and Description |
---|---|
boolean |
canWrite(Class<?> clazz,
MediaType mediaType) |
Serializable |
readInternal(Class clazz,
HttpInputMessage inputMessage) |
boolean |
supports(Class<?> clazz) |
protected void |
writeInternal(Serializable object,
HttpOutputMessage outputMessage) |
canRead, canRead, canWrite, getContentLength, getDefaultContentType, getSupportedMediaTypes, read, setSupportedMediaTypes, write
public SerializingHttpMessageConverter()
SerializingHttpMessageConverter
.public boolean supports(Class<?> clazz)
supports
in class AbstractHttpMessageConverter<Serializable>
public boolean canWrite(Class<?> clazz, MediaType mediaType)
canWrite
in interface HttpMessageConverter<Serializable>
canWrite
in class AbstractHttpMessageConverter<Serializable>
public Serializable readInternal(Class clazz, HttpInputMessage inputMessage) throws IOException
readInternal
in class AbstractHttpMessageConverter<Serializable>
IOException
protected void writeInternal(Serializable object, HttpOutputMessage outputMessage) throws IOException
writeInternal
in class AbstractHttpMessageConverter<Serializable>
IOException