|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.WindowAdapter
examples.BasicClient
Basic ssh2 client demo. Opens a terminal window and asks the usere where to connect to.
Username and password as well as server can be stored in properties.
It can also read portforwards from properties. Create properties named 'localN' or 'remoteN' where N is an integer 0-31. The contents of the properties is in the following format:
[/plugin/][This client understands the:] : :
ftp
and sniff
plugins.
Constructor Summary | |
BasicClient(java.util.Properties props)
Simple constructor. |
Method Summary | |
void |
close(TerminalMenuHandler originMenu)
|
void |
doClose()
|
int |
getExitStatus()
|
static void |
main(java.lang.String[] argv)
|
static java.lang.Object[] |
parseForwardSpec(java.lang.String spec,
java.lang.String listenAddr)
Parse a portforward specification string |
void |
run()
Actually runs the client. |
void |
update()
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
Methods inherited from class java.awt.event.WindowAdapter |
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicClient(java.util.Properties props)
Method Detail |
public void run()
main
function.
run
in interface java.lang.Runnable
public int getExitStatus()
public static java.lang.Object[] parseForwardSpec(java.lang.String spec, java.lang.String listenAddr) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
public void close(TerminalMenuHandler originMenu)
close
in interface TerminalMenuListener
public void doClose()
public void update()
update
in interface TerminalMenuListener
public static void main(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |