org.xfp.filters.ftp
Class FTPChangeDirectory

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

public class FTPChangeDirectory
extends FTPAbstractFilter

Changes the current working directory on the remote server. Uses an open FTP session from an attribute. Input is the filename to rename. Filename can be overridden using the filename parameter. input: String, output: String

Version:
$Id: FTPChangeDirectory.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
FTPChangeDirectory()
           
 
Method Summary
 java.lang.String execute()
          Executes this filter.
 void setDirectory(java.lang.String directory)
          Sets the remote directory
 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

FTPChangeDirectory

public FTPChangeDirectory()
Method Detail

setDirectory

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


execute

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

Returns:
outputs filtered input data
Throws:
java.lang.Exception - any 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.