Class SerializingHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
org.springframework.integration.http.converter.SerializingHttpMessageConverter
- All Implemented Interfaces:
HttpMessageConverter<Serializable>
public class SerializingHttpMessageConverter extends AbstractHttpMessageConverter<Serializable>
An
HttpMessageConverter
implementation for
Serializable
instances.- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell, Artem Bilan
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SerializingHttpMessageConverter()
Creates a new instance of theSerializingHttpMessageConverter
. -
Method Summary
Modifier and Type Method Description boolean
canWrite(Class<?> clazz, MediaType mediaType)
Serializable
readInternal(Class clazz, HttpInputMessage inputMessage)
boolean
supports(Class<?> clazz)
protected void
writeInternal(Serializable object, HttpOutputMessage outputMessage)
Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.http.converter.HttpMessageConverter
getSupportedMediaTypes
-
Constructor Details
-
SerializingHttpMessageConverter
public SerializingHttpMessageConverter()Creates a new instance of theSerializingHttpMessageConverter
.
-
-
Method Details
-
supports
- Specified by:
supports
in classAbstractHttpMessageConverter<Serializable>
-
canWrite
- Specified by:
canWrite
in interfaceHttpMessageConverter<Serializable>
- Overrides:
canWrite
in classAbstractHttpMessageConverter<Serializable>
-
readInternal
- Specified by:
readInternal
in classAbstractHttpMessageConverter<Serializable>
- Throws:
IOException
-
writeInternal
protected void writeInternal(Serializable object, HttpOutputMessage outputMessage) throws IOException- Specified by:
writeInternal
in classAbstractHttpMessageConverter<Serializable>
- Throws:
IOException
-