Interface ContextAwareMessagingMessageConverter<S>
- All Superinterfaces:
MessagingMessageConverter<S>
- All Known Implementing Classes:
AbstractMessagingMessageConverter,SqsMessagingMessageConverter
A
MessagingMessageConverter specialization that enables receving a MessageConversionContext that can
be used to add context specific properties to the converted message.- Since:
- 3.0
- Author:
- Tomaz Fernandes
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionAn optional context to be used in the conversion process.default SfromMessagingMessage(Message<?> message) Convert aMessageto a message from a specific messaging system.fromMessagingMessage(Message<?> message, MessageConversionContext context) Convert aMessageto a message from a specific messaging system.default Message<?>toMessagingMessage(S source) Convert a source message from a specific messaging system to aMessage.Message<?>toMessagingMessage(S source, MessageConversionContext context) Convert a source message from a specific messaging system to aMessagewith an optional context.
-
Method Details
-
toMessagingMessage
Description copied from interface:MessagingMessageConverterConvert a source message from a specific messaging system to aMessage.- Specified by:
toMessagingMessagein interfaceMessagingMessageConverter<S>- Parameters:
source- the source message.- Returns:
- the converted message.
-
fromMessagingMessage
Description copied from interface:MessagingMessageConverterConvert aMessageto a message from a specific messaging system.- Specified by:
fromMessagingMessagein interfaceMessagingMessageConverter<S>- Parameters:
message- the message from which to convert.- Returns:
- the system specific message.
-
toMessagingMessage
Convert a source message from a specific messaging system to aMessagewith an optional context.- Parameters:
source- the source message.context- an optional context with information to be used in the conversion process.- Returns:
- the converted message.
-
fromMessagingMessage
Convert aMessageto a message from a specific messaging system.- Parameters:
message- the message from which to convert.context- an optional context with information to be used in the conversion process.- Returns:
- the system specific message.
-
createMessageConversionContext
An optional context to be used in the conversion process.- Returns:
- the context.
-