Class TokenizerExpression.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • token

        public TokenizerExpression.Builder token​(String token)
        The (start) token to use as tokenizer, for example you can use the new line token. You can use simple language as the token to support dynamic tokens.
      • endToken

        public TokenizerExpression.Builder endToken​(String endToken)
        The end token to use as tokenizer if using start/end token pairs. You can use simple language as the token to support dynamic tokens.
      • inheritNamespaceTagName

        public TokenizerExpression.Builder inheritNamespaceTagName​(String inheritNamespaceTagName)
        To inherit namespaces from a root/parent tag name when using XML You can use simple language as the tag name to support dynamic names.
      • regex

        public TokenizerExpression.Builder regex​(boolean regex)
        If the token is a regular expression pattern.

        The default value is false

      • xml

        public TokenizerExpression.Builder xml​(boolean xml)
        Whether the input is XML messages. This option must be set to true if working with XML payloads.
      • includeTokens

        public TokenizerExpression.Builder includeTokens​(String includeTokens)
        Whether to include the tokens in the parts when using pairs

        The default value is false

      • includeTokens

        public TokenizerExpression.Builder includeTokens​(boolean includeTokens)
        Whether to include the tokens in the parts when using pairs

        The default value is false

      • group

        public TokenizerExpression.Builder group​(String group)
        To group N parts together, for example to split big files into chunks of 1000 lines. You can use simple language as the group to support dynamic group sizes.
      • groupDelimiter

        public TokenizerExpression.Builder groupDelimiter​(String groupDelimiter)
        Sets the delimiter to use when grouping. If this has not been set then token will be used as the delimiter.
      • id

        public T id​(String id)
        Sets the id of this node
      • trim

        public T trim​(String trim)
        Whether to trim the value to remove leading and trailing whitespaces and line breaks
      • trim

        public T trim​(boolean trim)
        Whether to trim the value to remove leading and trailing whitespaces and line breaks
      • expression

        public T expression​(String expression)
        The expression value in your chosen language syntax
      • predicate

        public T predicate​(org.apache.camel.Predicate predicate)