Class AdviceMessage<T>
java.lang.Object
org.springframework.messaging.support.GenericMessage<T>
org.springframework.integration.message.AdviceMessage<T>
- All Implemented Interfaces:
Serializable
,Message<T>
public class AdviceMessage<T> extends GenericMessage<T>
A message implementation that is produced by an advice after
successful message handling.
Contains the result of the expression evaluation in the payload
and the original message that the advice passed to the
handler.
.
- Since:
- 2.2
- Author:
- Gary Russell, Artem Bilan
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description AdviceMessage(T payload, Map<String,Object> headers, Message<?> inputMessage)
AdviceMessage(T payload, Message<?> inputMessage)
AdviceMessage(T payload, MessageHeaders headers, Message<?> inputMessage)
A constructor with theMessageHeaders
instance to use. -
Method Summary
Methods inherited from class org.springframework.messaging.support.GenericMessage
getHeaders, getPayload
-
Constructor Details
-
AdviceMessage
-
AdviceMessage
-
AdviceMessage
A constructor with theMessageHeaders
instance to use.Note: the given
MessageHeaders
instance is used directly in the new message, i.e. it is not copied.- Parameters:
payload
- the message payload (nevernull
)headers
- message headersinputMessage
- the input message for advice.- Since:
- 4.3.10
-
-
Method Details
-
getInputMessage
-
toString
- Overrides:
toString
in classGenericMessage<T>
-
equals
- Overrides:
equals
in classGenericMessage<T>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classGenericMessage<T>
-