org.apache.camel.language.tokenizer
Class XMLTokenizeLanguage
java.lang.Object
org.apache.camel.support.LanguageSupport
org.apache.camel.language.tokenizer.XMLTokenizeLanguage
- All Implemented Interfaces:
- CamelContextAware, IsSingleton, Language
public class XMLTokenizeLanguage
- extends 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLTokenizeLanguage
public XMLTokenizeLanguage()
tokenize
public static Expression tokenize(String path)
tokenize
public static Expression tokenize(String path,
char mode)
tokenize
public static Expression tokenize(String headerName,
String path)
tokenize
public static Expression tokenize(String headerName,
String path,
char mode)
createPredicate
public Predicate createPredicate(String expression)
- Description copied from interface:
Language
- Creates a predicate based on the given string input
- Parameters:
expression - the expression
- Returns:
- the created predicate
createExpression
public Expression createExpression()
- Creates a tokenize expression.
createExpression
public Expression createExpression(String expression)
- Description copied from interface:
Language
- Creates an expression based on the given string input
- Parameters:
expression - the expression as a string input
- Returns:
- the created expression
getPath
public String getPath()
setPath
public void setPath(String path)
getHeaderName
public String getHeaderName()
setHeaderName
public void setHeaderName(String headerName)
getMode
public char getMode()
setMode
public void setMode(char mode)
getGroup
public int getGroup()
setGroup
public void setGroup(int group)
isSingleton
public boolean isSingleton()
- Description copied from interface:
IsSingleton
- Whether this class supports being singleton or not.
- Specified by:
isSingleton in interface IsSingleton- Overrides:
isSingleton in class LanguageSupport
- Returns:
- true to be a single shared instance, false to create new instances.
Apache Camel