Secure FTP Factory

com.jscape.filetransfer
Class FileTransferRenameFileEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jscape.filetransfer.FileTransferEvent
          extended by com.jscape.filetransfer.FileTransferRenameFileEvent
All Implemented Interfaces:
java.io.Serializable

public class FileTransferRenameFileEvent
extends FileTransferEvent

Fired when a file is renamed on server.

See Also:
Serialized Form

Constructor Summary
FileTransferRenameFileEvent(java.lang.Object source, java.lang.String oldFile, java.lang.String newFile, java.lang.String path)
          Creates FileTransferRenameFileEvent.
 
Method Summary
 void accept(FileTransferListener listener)
          Accepts event via FileTransferListener.
 java.lang.String getNewFile()
          Gets the new file name.
 java.lang.String getOldFile()
          Gets the old file name.
 java.lang.String getPath()
          Gets the remote directory path the file was renamed from.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileTransferRenameFileEvent

public FileTransferRenameFileEvent(java.lang.Object source,
                                   java.lang.String oldFile,
                                   java.lang.String newFile,
                                   java.lang.String path)
Creates FileTransferRenameFileEvent.

Parameters:
source - the source of the event
oldFile - the file to be renamed
newFile - the new file name
path - the remote directory path the file was renamed from
Method Detail

getPath

public java.lang.String getPath()
Gets the remote directory path the file was renamed from.

Returns:
the remote directory path

getOldFile

public java.lang.String getOldFile()
Gets the old file name.

Returns:
the old file name

getNewFile

public java.lang.String getNewFile()
Gets the new file name.

Returns:
the new file name

accept

public void accept(FileTransferListener listener)
Accepts event via FileTransferListener.

Specified by:
accept in class FileTransferEvent
Parameters:
listener - the listener which receives event

Secure FTP Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved