Class PassThruMessageConverter
java.lang.Object
org.springframework.integration.support.converter.PassThruMessageConverter
- All Implemented Interfaces:
MessageConverter
The simple
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.
- Since:
- 4.2
- Author:
- Artem Bilan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromMessage
(Message<?> message, Class<?> targetClass) Message<?>
toMessage
(Object payload, MessageHeaders headers)
-
Constructor Details
-
PassThruMessageConverter
public PassThruMessageConverter()
-
-
Method Details
-
fromMessage
- Specified by:
fromMessage
in interfaceMessageConverter
-
toMessage
- Specified by:
toMessage
in interfaceMessageConverter
-