com.jscape.inet.sftp.events
Class SftpConnectedEvent
java.lang.Object
com.jscape.inet.sftp.events.SftpEvent
com.jscape.inet.sftp.events.SftpConnectedEvent
public final class SftpConnectedEvent
- extends SftpEvent
This event is fired when connection to SSH server is established.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SftpConnectedEvent
public SftpConnectedEvent(Sftp source,
java.lang.String host)
- Creates a new event instance.
- Parameters:
source
- the source of the eventhost
- the hostname of the SSH server
getHostname
public java.lang.String getHostname()
- Gets the SSH server hostname.
- Returns:
- the SSH server hostname
acceptListener
public void acceptListener(SftpListener listener)
- The "backwards dispatching" support.
- Specified by:
acceptListener
in class SftpEvent
- Parameters:
listener
- the event listener
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved