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

java.lang.Object
  extended by org.apache.camel.component.file.strategy.FileStategySupport
      extended by org.apache.camel.component.file.strategy.DeleteFileStrategy
All Implemented Interfaces:
FileStrategy

public class DeleteFileStrategy
extends FileStategySupport

A strategy which will delete the file when its processed

Version:
$Revision: 1.1 $

Constructor Summary
DeleteFileStrategy()
           
DeleteFileStrategy(boolean lockFile)
           
 
Method Summary
 void commit(FileEndpoint endpoint, FileExchange exchange, File file)
          Releases any file locks and possibly deletes or moves the file
 
Methods inherited from class org.apache.camel.component.file.strategy.FileStategySupport
begin, isLockFile, setLockFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteFileStrategy

public DeleteFileStrategy()

DeleteFileStrategy

public DeleteFileStrategy(boolean lockFile)
Method Detail

commit

public void commit(FileEndpoint endpoint,
                   FileExchange exchange,
                   File file)
            throws Exception
Description copied from interface: FileStrategy
Releases any file locks and possibly deletes or moves the file

Specified by:
commit in interface FileStrategy
Overrides:
commit in class FileStategySupport
Throws:
Exception


Copyright © 2007 Apache Software Foundation. All Rights Reserved.