|
SSH Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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); } ... }
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 |
---|
void connected(SshConnectedEvent event)
event
- a SshConnectedEventSshConnectedEvent
void disconnected(SshDisconnectedEvent event)
event
- a SshDisconnectedEventSshDisconnectedEvent
void dataReceived(SshDataReceivedEvent event)
event
- a SshDataReceivedEvent
|
SSH Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |