public class SshAdapter extends java.lang.Object implements SshListener
SshConnectedEventSshDisconnectedEventSshDataReceivedEvent
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 SshListenerevent - a SshConnectedEventSshConnectedEvent,
Ssh.connect()public void disconnected(SshDisconnectedEvent event)
Ssh#disconnect method.disconnected in interface SshListenerevent - a SshDisconnectedEventSshDisconnectedEvent,
Ssh.disconnect()public void dataReceived(SshDataReceivedEvent event)
dataReceived in interface SshListenerevent - a SshDataReceivedEventSshDataReceivedEventCopyright © JSCAPE LLC. 1999-2021. All Rights Reserved