Secure iNet Factory

com.jscape.inet.sftp.events
Class SftpDisconnectedEvent

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

public final class SftpDisconnectedEvent
extends SftpEvent

This event is fired when connection to SSH server is released.


Constructor Summary
SftpDisconnectedEvent(Sftp source, java.lang.String host)
          Creates a new event instance.
 
Method Summary
 void acceptListener(SftpListener listener)
          The "backwards dispatching" support.
 java.lang.String getHostname()
          Gets the SSH server hostname.
 
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

SftpDisconnectedEvent

public SftpDisconnectedEvent(Sftp source,
                             java.lang.String host)
Creates a new event instance.

Parameters:
source - the source of the event
host - the hostname of the SSH server
Method Detail

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

Secure iNet Factory

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