com.jscape.filetransfer
Class FileTransferCommandEvent
java.lang.Object
java.util.EventObject
com.jscape.filetransfer.FileTransferEvent
com.jscape.filetransfer.FileTransferCommandEvent
- All Implemented Interfaces:
- java.io.Serializable
public class FileTransferCommandEvent
- extends FileTransferEvent
Fired when command is sent to an FTP server. This event is only fired when communicating
with FTP/FTPS servers and is not fired when communicating using SFTP (FTP over SSH) protocol.
- See Also:
- Serialized Form
Constructor Summary |
FileTransferCommandEvent(java.lang.Object source,
java.lang.String command)
Creates FileTransferCommandEvent . |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileTransferCommandEvent
public FileTransferCommandEvent(java.lang.Object source,
java.lang.String command)
- Creates
FileTransferCommandEvent
.
- Parameters:
source
- the source of the eventcommand
- the command sent to FTP server
getCommand
public java.lang.String getCommand()
- Gets command sent to FTP server.
- Returns:
- the command sent to FTP server
accept
public void accept(FileTransferListener listener)
- Accepts event via FileTransferListener.
- Specified by:
accept
in class FileTransferEvent
- Parameters:
listener
- the listener which receives event
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved