public class AdviceMessage<T>
extends org.springframework.messaging.support.GenericMessage<T>
Constructor and Description |
---|
AdviceMessage(T payload,
java.util.Map<java.lang.String,java.lang.Object> headers,
org.springframework.messaging.Message<?> inputMessage) |
AdviceMessage(T payload,
org.springframework.messaging.Message<?> inputMessage) |
AdviceMessage(T payload,
org.springframework.messaging.MessageHeaders headers,
org.springframework.messaging.Message<?> inputMessage)
A constructor with the
MessageHeaders instance to use. |
Modifier and Type | Method and Description |
---|---|
org.springframework.messaging.Message<?> |
getInputMessage() |
java.lang.String |
toString() |
public AdviceMessage(T payload, org.springframework.messaging.Message<?> inputMessage)
public AdviceMessage(T payload, java.util.Map<java.lang.String,java.lang.Object> headers, org.springframework.messaging.Message<?> inputMessage)
public AdviceMessage(T payload, org.springframework.messaging.MessageHeaders headers, org.springframework.messaging.Message<?> inputMessage)
MessageHeaders
instance to use.
Note: the given MessageHeaders
instance is used
directly in the new message, i.e. it is not copied.
payload
- the message payload (never null
)headers
- message headersinputMessage
- the input message for advice.public org.springframework.messaging.Message<?> getInputMessage()
public java.lang.String toString()
toString
in class org.springframework.messaging.support.GenericMessage<T>