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.

Incoming requests are deserialized through an AllowListDeserializingConverter. For backward compatibility no class restriction is applied by default; when this converter is used to read requests from untrusted sources, configure an allowlist of trusted classes/packages via setAllowedPatterns(String...) or addAllowedPatterns(String...) to guard against unsafe Java deserialization.

Since:
2.0
Author:
Mark Fisher, Gary Russell, Artem Bilan, Uwez Khan