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) |
addDefaultHeaders, canRead, canRead, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedMediaTypes
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