Class XMLTokenizeLanguage

  • All Implemented Interfaces:
    org.apache.camel.CamelContextAware, org.apache.camel.IsSingleton, org.apache.camel.spi.Language

    @Language("xtokenize")
    public class XMLTokenizeLanguage
    extends org.apache.camel.support.LanguageSupport
    A language for tokenizer expressions.

    This xmltokenizer language can operate in the following modes:

    • inject - injecting the contextual namespace bindings into the extracted token
    • wrap - wrapping the extracted token in its ancestor context
    • unwrap - unwrapping the extracted token to its child content
    • Constructor Detail

      • XMLTokenizeLanguage

        public XMLTokenizeLanguage()
    • Method Detail

      • tokenize

        public static org.apache.camel.Expression tokenize​(String path)
      • tokenize

        public static org.apache.camel.Expression tokenize​(String path,
                                                           char mode)
      • tokenize

        public static org.apache.camel.Expression tokenize​(String headerName,
                                                           String path)
      • tokenize

        public static org.apache.camel.Expression tokenize​(String headerName,
                                                           String path,
                                                           char mode)
      • tokenize

        public static org.apache.camel.Expression tokenize​(String headerName,
                                                           String path,
                                                           char mode,
                                                           int group,
                                                           org.apache.camel.support.builder.Namespaces namespaces)
      • createPredicate

        public org.apache.camel.Predicate createPredicate​(String expression)
      • createExpression

        public org.apache.camel.Expression createExpression​(String expression)
        Creates a tokenize expression.
      • getHeaderName

        public String getHeaderName()
      • setHeaderName

        public void setHeaderName​(String headerName)
      • getPath

        public String getPath()
      • setPath

        public void setPath​(String path)
      • getMode

        public char getMode()
      • setMode

        public void setMode​(char mode)
      • getGroup

        public int getGroup()
      • setGroup

        public void setGroup​(int group)
      • getNamespaces

        public org.apache.camel.support.builder.Namespaces getNamespaces()
      • setNamespaces

        public void setNamespaces​(org.apache.camel.support.builder.Namespaces namespaces)
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.apache.camel.IsSingleton
        Overrides:
        isSingleton in class org.apache.camel.support.LanguageSupport