Package org.apache.camel.model.language
Class XMLTokenizerExpression
- java.lang.Object
-
- org.apache.camel.model.language.ExpressionDefinition
-
- org.apache.camel.model.language.NamespaceAwareExpression
-
- org.apache.camel.model.language.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 NamespaceAwareExpressionTokenize XML payloads.
-
-
Constructor Summary
Constructors Constructor Description XMLTokenizerExpression()XMLTokenizerExpression(String expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGroup()StringgetHeaderName()StringgetLanguage()StringgetMode()voidsetGroup(String group)To group N parts togethervoidsetHeaderName(String headerName)Name of header to tokenize instead of using the message body.voidsetMode(String mode)The extraction mode.-
Methods inherited from class org.apache.camel.model.language.NamespaceAwareExpression
getNamespace, getNamespaceAsMap, getNamespaces, setNamespace, setNamespaces
-
Methods inherited from class org.apache.camel.model.language.ExpressionDefinition
createExpression, createPredicate, evaluate, getExpression, getExpressionFactory, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getPredicate, getPredicateFactory, getTrim, init, initPredicate, matches, setExpression, setExpressionType, setExpressionValue, setId, setTrim, toString
-
-
-
-
Constructor Detail
-
XMLTokenizerExpression
public XMLTokenizerExpression()
-
XMLTokenizerExpression
public XMLTokenizerExpression(String expression)
-
-
Method Detail
-
getLanguage
public String getLanguage()
- Overrides:
getLanguagein classExpressionDefinition
-
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
-
-