Class ToMapProcessor

  • All Implemented Interfaces:
    org.apache.camel.Processor

    public class ToMapProcessor
    extends Object
    implements org.apache.camel.Processor
    A generic Apache Camel transformer processor, transforming the Exchange body into a Map with a single entry for the specified key and entry value the current Exchange body.
    • Constructor Detail

      • ToMapProcessor

        public ToMapProcessor​(String entryKey)
    • Method Detail

      • process

        public void process​(org.apache.camel.Exchange exchange)
                     throws Exception
        Specified by:
        process in interface org.apache.camel.Processor
        Throws:
        Exception