Class SerializingHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
org.springframework.integration.http.converter.SerializingHttpMessageConverter
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<Serializable>
public class SerializingHttpMessageConverter
extends org.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
An
HttpMessageConverter
implementation for
Serializable
instances.- Since:
- 2.0
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of theSerializingHttpMessageConverter
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
readInternal
(Class clazz, org.springframework.http.HttpInputMessage inputMessage) boolean
protected void
writeInternal
(Serializable object, org.springframework.http.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 classorg.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
-
canWrite
- Specified by:
canWrite
in interfaceorg.springframework.http.converter.HttpMessageConverter<Serializable>
- Overrides:
canWrite
in classorg.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
-
readInternal
public Serializable readInternal(Class clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException - Specified by:
readInternal
in classorg.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
- Throws:
IOException
-
writeInternal
protected void writeInternal(Serializable object, org.springframework.http.HttpOutputMessage outputMessage) throws IOException - Specified by:
writeInternal
in classorg.springframework.http.converter.AbstractHttpMessageConverter<Serializable>
- Throws:
IOException
-