org.springframework.integration.transformer
Class PayloadDeserializingTransformer
java.lang.Object
org.springframework.integration.transformer.AbstractTransformer
org.springframework.integration.transformer.AbstractPayloadTransformer<T,U>
org.springframework.integration.transformer.PayloadTypeConvertingTransformer<byte[],Object>
org.springframework.integration.transformer.PayloadDeserializingTransformer
- All Implemented Interfaces:
- 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 DeserializingConverter
using
Java serialization.
The byte array payload must be a result of equivalent serialization.
- Since:
- 1.0.1
- Author:
- Mark Fisher, Gary Russell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PayloadDeserializingTransformer
public PayloadDeserializingTransformer()
transformPayload
protected Object transformPayload(byte[] payload)
throws Exception
- Overrides:
transformPayload
in class PayloadTypeConvertingTransformer<byte[],Object>
- Throws:
Exception
setConverter
public void setConverter(Converter<byte[],Object> converter)
- Description copied from class:
PayloadTypeConvertingTransformer
- Sets the converter to be used for Serialization.
- Overrides:
setConverter
in class PayloadTypeConvertingTransformer<byte[],Object>
- Parameters:
converter
- The Converter.
Copyright © 2010. All Rights Reserved.