org.apache.camel.component.file.strategy
Class FileExpressionRenamer
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileExpressionRenamer
public FileExpressionRenamer()
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 exchangefile
- the original file.
- Returns:
- the renamed file.
getExpression
public Expression getExpression()
setExpression
public void setExpression(Expression expression)
Copyright © 2008 IONA Open Source Community. All Rights Reserved.