Class MetadataToProperties

  • All Implemented Interfaces:
    Translator.BasicPropertiesBuilder

    @ComponentProfile(summary="Convert metadata into RabbitMQ Headers",
                      since="4.3.0")
    public class MetadataToProperties
    extends java.lang.Object
    implements Translator.BasicPropertiesBuilder
    Build a BasicProperties object from metadata.

    Creates a BasicProperties object from metadata. Top level headers such as BasicProperties#getContentType() will be set by the configured Translator.PropertiesBuilderFactory. Subsequently, any metadata that is still available post filter via getHeaderFilter() will be added so they are available via AMQP.BasicProperties.getHeaders().

    Things like BasicProperties#getContentEncoding() and BasicProperties#getContentType() are considered informational by Interlok; there is no special treatment if you configure something as 'base64' or 'application/json'