Class XMLTokenizerExpression

  • All Implemented Interfaces:
    org.apache.camel.Expression, org.apache.camel.ExpressionFactory, HasExpressionType, org.apache.camel.Predicate, org.apache.camel.PredicateFactory, org.apache.camel.spi.ExpressionFactoryAware, org.apache.camel.spi.NamespaceAware, org.apache.camel.spi.PredicateFactoryAware

    @Metadata(firstVersion="2.14.0",
              label="language,core,xml",
              title="XML Tokenize")
    public class XMLTokenizerExpression
    extends NamespaceAwareExpression
    Tokenize XML payloads.
    • Constructor Detail

      • XMLTokenizerExpression

        public XMLTokenizerExpression()
      • XMLTokenizerExpression

        public XMLTokenizerExpression​(String expression)
    • Method Detail

      • getHeaderName

        public String getHeaderName()
      • setHeaderName

        public void setHeaderName​(String headerName)
        Name of header to tokenize instead of using the message body.
      • getMode

        public String getMode()
      • setMode

        public void setMode​(String mode)
        The extraction mode. The available extraction modes are:
        • i - injecting the contextual namespace bindings into the extracted token (default)
        • w - wrapping the extracted token in its ancestor context
        • u - unwrapping the extracted token to its child content
        • t - extracting the text content of the specified element
      • getGroup

        public String getGroup()
      • setGroup

        public void setGroup​(String group)
        To group N parts together