Class SerializingHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
org.springframework.integration.http.converter.SerializingHttpMessageConverter
- All Implemented Interfaces:
HttpMessageConverter<Serializable>
An
HttpMessageConverter
implementation for
Serializable
instances.- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
-
Constructor Summary
ConstructorDescriptionCreates a new instance of theSerializingHttpMessageConverter
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
readInternal
(Class clazz, HttpInputMessage inputMessage) boolean
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, supportsRepeatableWrites, 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
-