Secure FTP Factory

com.jscape.inet.sftp.events
Class SftpCreateDirEvent

java.lang.Object
  extended by com.jscape.inet.sftp.events.SftpEvent
      extended by com.jscape.inet.sftp.events.SftpCreateDirEvent

public final class SftpCreateDirEvent
extends SftpEvent

This event is fired when a directory is created on the server.


Constructor Summary
SftpCreateDirEvent(Sftp source, java.lang.String dir, java.lang.String path)
          Creates a new SftpCreateDirEvent instance.
 
Method Summary
 void acceptListener(SftpListener listener)
          The "backwards dispatching" support.
 java.lang.String getDirectory()
          Gets the name of the directory created.
 java.lang.String getPath()
          Gets the remote directory path this directory was created from
 
Methods inherited from class com.jscape.inet.sftp.events.SftpEvent
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SftpCreateDirEvent

public SftpCreateDirEvent(Sftp source,
                          java.lang.String dir,
                          java.lang.String path)
Creates a new SftpCreateDirEvent instance.

Parameters:
source - the source of this event
dir - the directory created
path - the remote directory path this directory was created from
Method Detail

getDirectory

public java.lang.String getDirectory()
Gets the name of the directory created.

Returns:
the directory created

getPath

public java.lang.String getPath()
Gets the remote directory path this directory was created from

Returns:
the remote directory path

acceptListener

public void acceptListener(SftpListener listener)
The "backwards dispatching" support.

Specified by:
acceptListener in class SftpEvent
Parameters:
listener - the event listener

Secure FTP Factory

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