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 Messages, e.g. Spring Integration Adapters.
- Since:
- 4.2
- Author:
- Artem Bilan
-
Constructor Summary
Constructors -
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:
fromMessagein interfaceMessageConverter
-
toMessage
- Specified by:
toMessagein interfaceMessageConverter
-