org.oddjob.net.ftp
Class FTPRename

java.lang.Object
  extended by org.oddjob.net.ftp.FTPRename
All Implemented Interfaces:
FTPCommand

public class FTPRename
extends Object
implements FTPCommand

Description

FTP command to rename a file.
Author:
rob

Constructor Summary
FTPRename()
           
 
Method Summary
 boolean executeWith(FTPClient client)
          Execute the command.
 String getFrom()
           
 String getTo()
           
 void setFrom(String path)
           
 void setTo(String to)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FTPRename

public FTPRename()
Method Detail

executeWith

public boolean executeWith(FTPClient client)
                    throws IOException
Description copied from interface: FTPCommand
Execute the command.

Specified by:
executeWith in interface FTPCommand
Parameters:
client - The client session.
Returns:
true if OK, false otherwise.
Throws:
IOException

getFrom

public String getFrom()

setFrom

public void setFrom(String path)

getTo

public String getTo()

setTo

public void setTo(String to)

toString

public String toString()
Overrides:
toString in class Object