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 S
fromMessagingMessage
(Message<?> message) Convert aMessage
to a message from a specific messaging system.fromMessagingMessage
(Message<?> message, MessageConversionContext context) Convert aMessage
to 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 aMessage
with an optional context.
-
Method Details
-
toMessagingMessage
Description copied from interface:MessagingMessageConverter
Convert a source message from a specific messaging system to aMessage
.- Specified by:
toMessagingMessage
in interfaceMessagingMessageConverter<S>
- Parameters:
source
- the source message.- Returns:
- the converted message.
-
fromMessagingMessage
Description copied from interface:MessagingMessageConverter
Convert aMessage
to a message from a specific messaging system.- Specified by:
fromMessagingMessage
in 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 aMessage
with 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 aMessage
to 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.
-