public class PassThruMessageConverter extends Object implements MessageConverter
MessageConverter
implementation which contract is to return
Message
as is for both from/to
operations.
It is useful in cases of some protocol implementations (e.g. STOMP),
which is based on the "Spring Messaging Foundation" and the further logic
operates only with Message
s, e.g. Spring Integration Adapters.
Constructor and Description |
---|
PassThruMessageConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
fromMessage(Message<?> message,
Class<?> targetClass) |
Message<?> |
toMessage(Object payload,
MessageHeaders headers) |
public Object fromMessage(Message<?> message, Class<?> targetClass)
fromMessage
in interface MessageConverter
public Message<?> toMessage(Object payload, MessageHeaders headers)
toMessage
in interface MessageConverter