public class SshAdapter extends java.lang.Object implements SshListener
SshConnectedEvent
SshDisconnectedEvent
SshDataReceivedEvent
In addition to extending this class your application should register
itself as an EventListener which may look somewhat like this:public class Application ... extends SshAdapter { ... public ... initMethod(...) { Ssh ssh = new Ssh(hostname,username,password); ssh.addSshListener(this); } ... }
Constructor and Description |
---|
SshAdapter() |
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 Telnet server.
|
void |
disconnected(SshDisconnectedEvent event)
Invoked when SSH connection is released.
|
public void connected(SshConnectedEvent event)
connected
in interface SshListener
event
- a SshConnectedEventSshConnectedEvent
,
Ssh.connect()
public void disconnected(SshDisconnectedEvent event)
Ssh#disconnect
method.disconnected
in interface SshListener
event
- a SshDisconnectedEventSshDisconnectedEvent
,
Ssh.disconnect()
public void dataReceived(SshDataReceivedEvent event)
dataReceived
in interface SshListener
event
- a SshDataReceivedEvent
SshDataReceivedEvent
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved