org.apache.camel.language.simple
Class FileLanguage

java.lang.Object
  extended by org.apache.camel.language.simple.AbstractSimpleLanguage
      extended by org.apache.camel.language.simple.FileLanguage
All Implemented Interfaces:
Language

public class FileLanguage
extends AbstractSimpleLanguage

File language is an extension to Simple language to add file specific expressions. Examples of supported file expressions are:

All the simple expression is also available so you can eg use ${in.header.foo} to access the foo header.

See Also:
SimpleLanguage, BeanLanguage

Constructor Summary
FileLanguage()
           
 
Method Summary
protected  Expression<FileExchange> createSimpleExpression(String expression)
          Creates the simple expression based on the extracted content from the ${ } place holders
static Expression file(String expression)
           
 
Methods inherited from class org.apache.camel.language.simple.AbstractSimpleLanguage
createComplexExpression, createConstantExpression, createExpression, createPredicate, ifStartsWithReturnRemainder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLanguage

public FileLanguage()
Method Detail

file

public static Expression file(String expression)

createSimpleExpression

protected Expression<FileExchange> 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 © 2010 IONA Open Source Community. All Rights Reserved.