org.apache.camel.language.header
Class HeaderLanguage

java.lang.Object
  extended by org.apache.camel.language.header.HeaderLanguage
All Implemented Interfaces:
IsSingleton, Language

public class HeaderLanguage
extends Object
implements Language, IsSingleton

A language for header expressions.


Constructor Summary
HeaderLanguage()
           
 
Method Summary
 Expression createExpression(String expression)
          Creates an expression based on the given string input
 Predicate createPredicate(String expression)
          Creates a predicate based on the given string input
static Expression header(String headerName)
           
 boolean isSingleton()
          Whether this class supports being singleton or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderLanguage

public HeaderLanguage()
Method Detail

header

public static Expression header(String headerName)

createPredicate

public Predicate createPredicate(String expression)
Description copied from interface: Language
Creates a predicate based on the given string input

Specified by:
createPredicate in interface Language
Parameters:
expression - the expression
Returns:
the created predicate

createExpression

public Expression createExpression(String expression)
Description copied from interface: Language
Creates an expression based on the given string input

Specified by:
createExpression in interface Language
Parameters:
expression - the expression as a string input
Returns:
the created expression

isSingleton

public boolean isSingleton()
Description copied from interface: IsSingleton
Whether this class supports being singleton or not.

Specified by:
isSingleton in interface IsSingleton
Returns:
true to be a single shared instance, false to create new instances.


Apache CAMEL