org.apache.camel.language.simple
Class SimpleLanguage
java.lang.Object
org.apache.camel.language.simple.AbstractSimpleLanguage
org.apache.camel.language.simple.SimpleLanguage
- All Implemented Interfaces:
- Language
public class SimpleLanguage
- extends AbstractSimpleLanguage
A simple language
which maps simple property style notations to access headers and bodies.
Examples of supported expressions are:
- id to access the inbound message Id
- in.body or body to access the inbound body
- out.body to access the inbound body
- in.header.foo or header.foo to access an inbound header called 'foo'
- out.header.foo to access an outbound header called 'foo'
- property.foo to access the exchange property called 'foo'
- sys.foo to access the system property called 'foo'
- date:<command>:<pattern> for date formatting using the
SimpleDateFormat
patterns.
Supported commands are: now for current timestamp,
in.header.xxx or header.xxx to use the Date object in the in header.
out.header.xxx to use the Date object in the out header.
- bean:<bean expression> to invoke a bean using the
BeanLanguage
- Version:
- $Revision: 52207 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleLanguage
public SimpleLanguage()
simple
public static Expression simple(String expression)
createSimpleExpression
protected Expression<Exchange> createSimpleExpression(String expression)
- Description copied from class:
AbstractSimpleLanguage
- Creates the simple expression based on the extracted content from the ${ } place holders
- Specified by:
createSimpleExpression
in class AbstractSimpleLanguage
- Parameters:
expression
- the content between ${ and }
- Returns:
- the expression
Copyright © 2009 IONA Open Source Community. All Rights Reserved.