com.jscape.inet.ssh

## Interface SshListener

- All Known Implementing Classes:
    SshAdapter, SshScript

      public interface SshListener

  Implements methods for capturing events sourced from Ssh class. Typicaly your application will implement this interface to capture the following events :

  `SshConnectedEvent`
  `SshDisconnectedEvent`
  `SshDataReceivedEvent`

  In addition to implementing this interface your application should register itself as an EventListener which may look somewhat like this:

       public class Application ... implements SshListener
       {
        ...
        public ... initMethod(...)
        {
          Ssh ssh = new Ssh(hostname,username,password);
          ssh.addSshListener(this);
        }
        ...
       }

  Version:
    1.0
  Author:
    vglass

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `connected(SshConnectedEvent event)` Invoked when SSH connection is established.
    `void` | `dataReceived(SshDataReceivedEvent event)` Invoked when data is received from SSH server.
    `void` | `disconnected(SshDisconnectedEvent event)` Invoked when SSH connection is released.

- - ### Method Detail

    - #### connected

          void connected(SshConnectedEvent event)

      Invoked when SSH connection is established.
      Parameters:
        `event` - a SshConnectedEvent
      See Also:
        `SshConnectedEvent`

    - #### disconnected

          void disconnected(SshDisconnectedEvent event)

      Invoked when SSH connection is released.
      Parameters:
        `event` - a SshDisconnectedEvent
      See Also:
        `SshDisconnectedEvent`

    - #### dataReceived

          void dataReceived(SshDataReceivedEvent event)

      Invoked when data is received from SSH server.
      Parameters:
        `event` - a SshDataReceivedEvent

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