Class PayloadDeserializingTransformer
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.transformer.AbstractTransformer
org.springframework.integration.transformer.AbstractPayloadTransformer<byte[],Object>
 
org.springframework.integration.transformer.PayloadTypeConvertingTransformer<byte[],Object>
 
org.springframework.integration.transformer.PayloadDeserializingTransformer
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- BeanNameAware,- InitializingBean,- ApplicationContextAware,- ComponentSourceAware,- ExpressionCapable,- GenericTransformer<Message<?>, Message<?>>,- NamedComponent,- Transformer
public class PayloadDeserializingTransformer
extends PayloadTypeConvertingTransformer<byte[],Object> 
Transformer that deserializes the inbound byte array payload to an object by delegating
 to a Converter<byte[], Object>. Default delegate is a
 
AllowListDeserializingConverter using Java serialization.
 The byte array payload must be a result of equivalent serialization.
- Since:
- 1.0.1
- Author:
- Mark Fisher, Gary Russell, Artem Bilan
- 
Field SummaryFields inherited from class org.springframework.integration.context.IntegrationObjectSupportEXPRESSION_PARSER, logger
- 
Constructor SummaryConstructorsConstructorDescriptionInstantiate based on theAllowListDeserializingConverterwith theDefaultDeserializer.
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetAllowedPatterns(String... patterns) When using aAllowListDeserializingConverter(the default) add patterns for packages/classes that are allowed to be deserialized.voidsetDeserializer(Deserializer<Object> deserializer) Methods inherited from class org.springframework.integration.transformer.PayloadTypeConvertingTransformerdoSetConverter, getConverter, onInit, setConverter, transformPayloadMethods inherited from class org.springframework.integration.transformer.AbstractPayloadTransformerdoTransformMethods inherited from class org.springframework.integration.transformer.AbstractTransformertransformMethods inherited from class org.springframework.integration.context.IntegrationObjectSupportafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getComponentType, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
- 
Constructor Details- 
PayloadDeserializingTransformerpublic PayloadDeserializingTransformer()Instantiate based on theAllowListDeserializingConverterwith theDefaultDeserializer.
 
- 
- 
Method Details- 
setDeserializer
- 
setAllowedPatternsWhen using aAllowListDeserializingConverter(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.- Parameters:
- patterns- the patterns.
- Since:
- 5.4
 
 
-