Package interlok.rabbitmq
Class PropertiesToMetadata
- java.lang.Object
-
- interlok.rabbitmq.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.BasicPropertiesHandlerAdd metadata to the message from theBasicPropertiesobject.
-
-
Constructor Summary
Constructors Constructor Description PropertiesToMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPrefix()Set the prefix (if any) for metadata keys when convertingBasicProperties#getHeaders().voidhandle(com.rabbitmq.client.AMQP.BasicProperties properties, AdaptrisMessage msg)voidsetPrefix(java.lang.String prefix)Set the prefix (if any) for metadata keys when convertingBasicProperties#getHeaders().PropertiesToMetadatawithPrefix(java.lang.String s)
-
-
-
Method Detail
-
handle
public void handle(com.rabbitmq.client.AMQP.BasicProperties properties, AdaptrisMessage msg)- Specified by:
handlein interfaceTranslator.BasicPropertiesHandler
-
withPrefix
public PropertiesToMetadata withPrefix(java.lang.String s)
-
getPrefix
public java.lang.String getPrefix()
Set the prefix (if any) for metadata keys when convertingBasicProperties#getHeaders().Note that standard properties such as
BasicProperties#getClusterId()will always be added with the appropriate key fromMetadataConstants. 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 convertingBasicProperties#getHeaders().Note that standard properties such as
BasicProperties#getClusterId()will always be added with the appropriate key fromMetadataConstants. This allows us to have predictable behaviour around those properties as required.
-
-