org.apache.camel.component.file.strategy
Class RenameFileProcessStrategy
java.lang.Object
org.apache.camel.component.file.strategy.FileProcessStrategySupport
org.apache.camel.component.file.strategy.RenameFileProcessStrategy
- All Implemented Interfaces:
- FileProcessStrategy
public class RenameFileProcessStrategy
- extends FileProcessStrategySupport
A strategy to rename a file
- Version:
- $Revision: 35332 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RenameFileProcessStrategy
public RenameFileProcessStrategy()
RenameFileProcessStrategy
public RenameFileProcessStrategy(boolean lock)
RenameFileProcessStrategy
public RenameFileProcessStrategy(boolean lock,
String namePrefix,
String namePostfix)
RenameFileProcessStrategy
public RenameFileProcessStrategy(boolean lock,
FileRenamer renamer)
commit
public void commit(FileEndpoint endpoint,
FileExchange exchange,
File file)
throws Exception
- Description copied from interface:
FileProcessStrategy
- Releases any file locks and possibly deletes or moves the file
- Specified by:
commit
in interface FileProcessStrategy
- Overrides:
commit
in class FileProcessStrategySupport
- Parameters:
endpoint
- the endpointexchange
- the exchangefile
- the file
- Throws:
Exception
- can be thrown in case of errors
getRenamer
public FileRenamer getRenamer()
setRenamer
public void setRenamer(FileRenamer renamer)
Copyright © 2008 IONA Open Source Community. All Rights Reserved.