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 Object
implements Translator.BasicPropertiesHandler
Add metadata to the message from the
BasicProperties object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the prefix (if any) for metadata keys when convertingBasicProperties#getHeaders().voidhandle(com.rabbitmq.client.AMQP.BasicProperties properties, AdaptrisMessage msg) voidSet the prefix (if any) for metadata keys when convertingBasicProperties#getHeaders().withPrefix(String s)
-
Constructor Details
-
PropertiesToMetadata
public PropertiesToMetadata()
-
-
Method Details
-
handle
- Specified by:
handlein interfaceTranslator.BasicPropertiesHandler
-
withPrefix
-
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
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.
-