SSH Factory

com.jscape.inet.ssh
Interface SshListener

All Known Implementing Classes:
SshAdapter

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
 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

public void connected(SshConnectedEvent event)
Invoked when SSH connection is established.

Parameters:
event - a SshConnectedEvent
See Also:
SshConnectedEvent

disconnected

public void disconnected(SshDisconnectedEvent event)
Invoked when SSH connection is released.

Parameters:
event - a SshDisconnectedEvent
See Also:
SshDisconnectedEvent

dataReceived

public void dataReceived(SshDataReceivedEvent event)
Invoked when data is received from SSH server.

Parameters:
event - a SshDataReceivedEvent

SSH Factory

Copyright JSCAPE 2004 All Rights Reserved