Class PropertiesToMetadata

  • All Implemented Interfaces:
    Translator.BasicPropertiesHandler

    @ComponentProfile(summary="Store headers from an incoming message as AdaptrisMessage metadata",
                      since="4.3.0")
    public class PropertiesToMetadata
    extends java.lang.Object
    implements Translator.BasicPropertiesHandler
    Add metadata to the message from the BasicProperties object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPrefix()
      Set the prefix (if any) for metadata keys when converting BasicProperties#getHeaders().
      void handle​(com.rabbitmq.client.AMQP.BasicProperties properties, AdaptrisMessage msg)  
      void setPrefix​(java.lang.String prefix)
      Set the prefix (if any) for metadata keys when converting BasicProperties#getHeaders().
      PropertiesToMetadata withPrefix​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropertiesToMetadata

        public PropertiesToMetadata()
    • Method Detail

      • getPrefix

        public java.lang.String getPrefix()
        Set the prefix (if any) for metadata keys when converting BasicProperties#getHeaders().

        Note that standard properties such as BasicProperties#getClusterId() will always be added with the appropriate key from MetadataConstants. This allows us to have predictable behaviour around those properties as required.

      • setPrefix

        public void setPrefix​(java.lang.String prefix)
        Set the prefix (if any) for metadata keys when converting BasicProperties#getHeaders().

        Note that standard properties such as BasicProperties#getClusterId() will always be added with the appropriate key from MetadataConstants. This allows us to have predictable behaviour around those properties as required.