org.apache.camel.component.file.strategy
Class FileExpressionRenamer

java.lang.Object
  extended by org.apache.camel.component.file.strategy.FileExpressionRenamer
All Implemented Interfaces:
FileRenamer

public class FileExpressionRenamer
extends Object
implements FileRenamer

File renamed using Expression to dynamically compute the file name.

If most cases the FileLanguage is used to create the expressions.


Constructor Summary
FileExpressionRenamer()
           
 
Method Summary
 Expression getExpression()
           
 File renameFile(FileExchange exchange, File file)
          Renames the given file
 void setExpression(Expression expression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileExpressionRenamer

public FileExpressionRenamer()
Method Detail

renameFile

public File renameFile(FileExchange exchange,
                       File file)
Description copied from interface: FileRenamer
Renames the given file

Specified by:
renameFile in interface FileRenamer
Parameters:
exchange - the exchange
file - the original file.
Returns:
the renamed file.

getExpression

public Expression getExpression()

setExpression

public void setExpression(Expression expression)


Copyright © 2009 IONA Open Source Community. All Rights Reserved.