Class AdviceMessage<T>
java.lang.Object
org.springframework.messaging.support.GenericMessage<T>
org.springframework.integration.message.AdviceMessage<T>
- Type Parameters:
- T- the payload type.
- All Implemented Interfaces:
- Serializable,- Message<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:
- 
Constructor SummaryConstructorsConstructorDescriptionAdviceMessage(T payload, Message<?> inputMessage) AdviceMessage(T payload, MessageHeaders headers, Message<?> inputMessage) A constructor with theMessageHeadersinstance to use.
- 
Method SummaryMethods inherited from class org.springframework.messaging.support.GenericMessagegetHeaders, getPayload
- 
Constructor Details- 
AdviceMessage
- 
AdviceMessage
- 
AdviceMessageA constructor with theMessageHeadersinstance to use.Note: the given MessageHeadersinstance is used directly in the new message, i.e. it is not copied.- Parameters:
- payload- the message payload (never- null)
- headers- message headers
- inputMessage- the input message for advice.
- Since:
- 4.3.10
 
 
- 
- 
Method Details- 
getInputMessage
- 
toString- Overrides:
- toStringin class- GenericMessage<T>
 
- 
equals- Overrides:
- equalsin class- GenericMessage<T>
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- GenericMessage<T>
 
 
-