org.xfp.filters.ftp
Class FTPMove

java.lang.Object
  extended byorg.xfp.AttributeContainer
      extended byorg.xfp.Filter
          extended byorg.xfp.filters.ftp.FTPAbstractFilter
              extended byorg.xfp.filters.ftp.FTPMove

public class FTPMove
extends FTPAbstractFilter

Moves a remote file on an FTP server. Uses an open FTP session from an attribute.

Version:
$Id: FTPMove.java,v 1.1 2004/03/19 15:56:42 flaviotordini Exp $
Author:
Flavio Tordini

Nested Class Summary
 
Nested classes inherited from class org.xfp.Filter
Filter.OnErrorEnum, Filter.OnLoopErrorEnum
 
Field Summary
 
Fields inherited from class org.xfp.filters.ftp.FTPAbstractFilter
ftp
 
Fields inherited from class org.xfp.AttributeContainer
name, parentContainer
 
Constructor Summary
FTPMove()
           
 
Method Summary
 void execute()
          Executes this filter.
 void execute(org.apache.commons.net.ftp.FTPFile ftpfile)
          Executes this filter.
 void execute(java.lang.String filename)
          Executes this filter.
 void setDirectory(java.lang.String directory)
          Sets the remote destination directory.
 void setFilename(java.lang.String filename)
          Sets the name of the remote file to move.
 void subreset()
          Subclasses must reset their status within this method.
 
Methods inherited from class org.xfp.filters.ftp.FTPAbstractFilter
reset, setClient
 
Methods inherited from class org.xfp.Filter
getOnError, initialize, log, newInstance, perform, toString
 
Methods inherited from class org.xfp.AttributeContainer
configureAttributes, disposeAttributes, getAttributes, getFullName, getName, initializeAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FTPMove

public FTPMove()
Method Detail

setDirectory

public void setDirectory(java.lang.String directory)
Sets the remote destination directory.


setFilename

public void setFilename(java.lang.String filename)
Sets the name of the remote file to move.

Parameters:
filename - The filename to set

execute

public void execute()
             throws java.lang.Exception
Executes this filter.

Throws:
java.lang.Exception

execute

public void execute(java.lang.String filename)
             throws java.lang.Exception
Executes this filter.

Parameters:
filename - the name of the remote file to move
Throws:
java.lang.Exception

execute

public void execute(org.apache.commons.net.ftp.FTPFile ftpfile)
             throws java.lang.Exception
Executes this filter.

Throws:
java.lang.Exception

subreset

public void subreset()
Description copied from class: FTPAbstractFilter
Subclasses must reset their status within this method.

Specified by:
subreset in class FTPAbstractFilter
See Also:
FTPAbstractFilter.subreset()


Copyright © 2003-2004 XFP Team. All Rights Reserved.