|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.smartlab.ssh.Shell
public class Shell
This class represents a secure remote shell obtained through the SSH protocol.
| Constructor Summary | |
|---|---|
Shell()
|
|
| Method Summary | |
|---|---|
void |
close()
TODO documentation |
java.lang.String |
execute(java.lang.String command)
TODO documentation |
java.lang.String |
getHost()
Returns the host. |
java.lang.String |
getPassword()
Returns the password. |
int |
getPort()
Returns the port. |
long |
getTimeout()
Returns the timeout. |
java.lang.String |
getUsername()
Returns the username. |
java.lang.String |
interrupt()
TODO documentation |
void |
open()
TODO documentation |
void |
setHost(java.lang.String host)
Sets the host. |
void |
setPassword(java.lang.String password)
Sets the password. |
void |
setPort(int port)
Sets the port. |
void |
setTimeout(long timeout)
Sets the timeout. |
void |
setUsername(java.lang.String username)
Sets the username. |
java.lang.String |
toString()
|
java.lang.String |
update()
TODO documentation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Shell()
| Method Detail |
|---|
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
username - the username to set.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - the password to set.public java.lang.String getHost()
public void setHost(java.lang.String host)
host - the host to set.public int getPort()
public void setPort(int port)
port - the port to set.public long getTimeout()
public void setTimeout(long timeout)
timeout - the timeout to set.
public void open()
throws net.smartlab.web.BusinessException,
java.io.IOException
host - port - username - password -
net.smartlab.web.BusinessException
java.io.IOException
public java.lang.String update()
throws java.io.IOException
java.io.IOException
public java.lang.String execute(java.lang.String command)
throws java.io.IOException
command -
java.io.IOException
public java.lang.String interrupt()
throws java.io.IOException
java.io.IOExceptionpublic void close()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||