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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • buildErrorMessage

      public org.springframework.messaging.support.ErrorMessage buildErrorMessage​(java.lang.Throwable throwable, @Nullable org.springframework.core.AttributeAccessor context)
      Specified by:
      buildErrorMessage in interface org.springframework.integration.support.ErrorMessageStrategy