|
SSH Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jscape.inet.ssh.SshAdapter
Implements methods for capturing events sourced from Ssh class. Typicaly your application will implement this interface to capture the following events :
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 Summary | |
SshAdapter()
|
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SshAdapter()
| Method Detail |
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 SshDataReceivedEventSshDataReceivedEvent
|
SSH Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||