com.jscape.inet.sftp.events

## Class SftpDisconnectedEvent

- java.lang.Object
- - com.jscape.inet.sftp.events.SftpEvent
  - - com.jscape.inet.sftp.events.SftpDisconnectedEvent

-     public class SftpDisconnectedEvent
      extends SftpEvent

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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SftpDisconnectedEvent(Sftp source, java.lang.String hostname, int port)` Creates a new event instance.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accept(SftpListener listener)` The "backwards dispatching" support.
    `java.lang.String` | `getHostname()` Gets the SSH server hostname.
    `int` | `getPort()`

    - ### 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 hostname,
                                       int port)

      Creates a new event instance.
      Parameters:
        `source` - the source of the event
        `hostname` - the hostname of the SSH server

  - ### Method Detail

    - #### getHostname

          public java.lang.String getHostname()

      Gets the SSH server hostname.
      Returns:
        the SSH server hostname

    - #### getPort

          public int getPort()

    - #### accept

          public void accept(SftpListener listener)

      The "backwards dispatching" support.
      Specified by:
        `accept` in class `SftpEvent`
      Parameters:
        `listener` - the event listener

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