public class PayloadDeserializingTransformer extends PayloadTypeConvertingTransformer<byte[],Object>
AllowListDeserializingConverter
using Java serialization.
The byte array payload must be a result of equivalent serialization.
EXPRESSION_PARSER, logger
Constructor and Description |
---|
PayloadDeserializingTransformer()
Instantiate based on the
AllowListDeserializingConverter with the
DefaultDeserializer . |
Modifier and Type | Method and Description |
---|---|
void |
setAllowedPatterns(String... patterns)
When using a
AllowListDeserializingConverter (the default) add patterns
for packages/classes that are allowed to be deserialized. |
void |
setDeserializer(Deserializer<Object> deserializer) |
doSetConverter, getConverter, onInit, setConverter, transformPayload
doTransform
transform
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
public PayloadDeserializingTransformer()
AllowListDeserializingConverter
with the
DefaultDeserializer
.public void setDeserializer(Deserializer<Object> deserializer)
public void setAllowedPatterns(String... patterns)
AllowListDeserializingConverter
(the default) add patterns
for packages/classes that are allowed to be deserialized.
A class can be fully qualified or a wildcard '*' is allowed at the
beginning or end of the class name.
Examples: com.foo.*
, *.MyClass
.patterns
- the patterns.