Class AmqpMessageHeaderErrorMessageStrategy
java.lang.Object
org.springframework.integration.amqp.support.AmqpMessageHeaderErrorMessageStrategy
- All Implemented Interfaces:
org.springframework.integration.support.ErrorMessageStrategy
public class AmqpMessageHeaderErrorMessageStrategy
extends java.lang.Object
implements org.springframework.integration.support.ErrorMessageStrategy
An
ErrorMessageStrategy
extension that adds the raw AMQP message as
a header to the ErrorMessage
.- Since:
- 4.3.10
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AMQP_RAW_MESSAGE
Header name/retry context variable for the raw received message. -
Constructor Summary
Constructors Constructor Description AmqpMessageHeaderErrorMessageStrategy()
-
Method Summary
Modifier and Type Method Description org.springframework.messaging.support.ErrorMessage
buildErrorMessage(java.lang.Throwable throwable, org.springframework.core.AttributeAccessor context)
-
Field Details
-
AMQP_RAW_MESSAGE
public static final java.lang.String AMQP_RAW_MESSAGEHeader name/retry context variable for the raw received message.- See Also:
- Constant Field Values
-
-
Constructor Details
-
AmqpMessageHeaderErrorMessageStrategy
public AmqpMessageHeaderErrorMessageStrategy()
-
-
Method Details
-
buildErrorMessage
public org.springframework.messaging.support.ErrorMessage buildErrorMessage(java.lang.Throwable throwable, @Nullable org.springframework.core.AttributeAccessor context)- Specified by:
buildErrorMessage
in interfaceorg.springframework.integration.support.ErrorMessageStrategy
-