Class RemoveHeadersDefinition

All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.LineNumberAware, Block, org.apache.camel.NamedNode, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.HasId, org.apache.camel.spi.IdAware

@Metadata(label="eip,transformation") public class RemoveHeadersDefinition extends NoOutputDefinition<RemoveHeadersDefinition>
Removes message headers whose name matches a specified pattern
  • Constructor Details

    • RemoveHeadersDefinition

      public RemoveHeadersDefinition()
    • RemoveHeadersDefinition

      public RemoveHeadersDefinition(String pattern)
    • RemoveHeadersDefinition

      public RemoveHeadersDefinition(String pattern, String... excludePatterns)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getShortName

      public String getShortName()
    • getLabel

      public String getLabel()
      Description copied from class: ProcessorDefinition
      Returns a label to describe this node such as the expression if some kind of expression node
      Specified by:
      getLabel in interface org.apache.camel.NamedNode
      Overrides:
      getLabel in class ProcessorDefinition<RemoveHeadersDefinition>
    • setPattern

      public void setPattern(String pattern)
      Name or pattern of headers to remove. The pattern is matched in the following order: 1 = exact match 2 = wildcard (pattern ends with a * and the name starts with the pattern) 3 = regular expression (all of above is case in-sensitive).
    • getPattern

      public String getPattern()
    • getExcludePatterns

      public String[] getExcludePatterns()
    • setExcludePatterns

      public void setExcludePatterns(String[] excludePatterns)
      Name or pattern of headers to not remove. The pattern is matched in the following order: 1 = exact match 2 = wildcard (pattern ends with a * and the name starts with the pattern) 3 = regular expression (all of above is case in-sensitive).
    • getExcludePattern

      public String getExcludePattern()
    • setExcludePattern

      public void setExcludePattern(String excludePattern)
      Name or patter of headers to not remove. The pattern is matched in the following order: 1 = exact match 2 = wildcard (pattern ends with a * and the name starts with the pattern) 3 = regular expression (all of above is case in-sensitive).