|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.ssh.term.AbstractCommand org.crsh.ssh.term.CRaSHCommand
public class CRaSHCommand
Field Summary | |
---|---|
private JLineProcessor |
console
. |
private SSHContext |
context
. |
private String |
encoding
. |
private CRaSHCommandFactory |
factory
. |
protected static Logger |
log
. |
private Thread |
thread
. |
Fields inherited from class org.crsh.ssh.term.AbstractCommand |
---|
callback, err, in, out, session |
Constructor Summary | |
---|---|
CRaSHCommand(CRaSHCommandFactory factory)
|
Method Summary | |
---|---|
void |
destroy()
|
SSHContext |
getContext()
|
int |
getHeight()
|
String |
getOutputEncoding()
|
int |
getWidth()
|
boolean |
hasWeirdWrap()
|
void |
init()
|
boolean |
isAnsiSupported()
|
boolean |
isEchoEnabled()
|
boolean |
isSupported()
|
void |
reset()
|
void |
restore()
|
void |
run()
|
void |
setEchoEnabled(boolean enabled)
|
void |
start(org.apache.sshd.server.Environment env)
|
InputStream |
wrapInIfNeeded(InputStream in)
|
OutputStream |
wrapOutIfNeeded(OutputStream out)
|
Methods inherited from class org.crsh.ssh.term.AbstractCommand |
---|
setErrorStream, setExitCallback, setInputStream, setOutputStream, setSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Logger log
private final CRaSHCommandFactory factory
private Thread thread
private String encoding
private SSHContext context
private JLineProcessor console
Constructor Detail |
---|
public CRaSHCommand(CRaSHCommandFactory factory)
Method Detail |
---|
public void start(org.apache.sshd.server.Environment env) throws IOException
start
in interface org.apache.sshd.server.Command
IOException
public SSHContext getContext()
public void destroy()
destroy
in interface org.apache.sshd.server.Command
public void run()
run
in interface Runnable
public String getOutputEncoding()
getOutputEncoding
in interface Terminal
public void init() throws Exception
init
in interface Terminal
Exception
public void restore() throws Exception
restore
in interface Terminal
Exception
public void reset() throws Exception
reset
in interface Terminal
Exception
public boolean isSupported()
isSupported
in interface Terminal
public int getWidth()
getWidth
in interface Terminal
public int getHeight()
getHeight
in interface Terminal
public boolean isAnsiSupported()
isAnsiSupported
in interface Terminal
public OutputStream wrapOutIfNeeded(OutputStream out)
wrapOutIfNeeded
in interface Terminal
public InputStream wrapInIfNeeded(InputStream in) throws IOException
wrapInIfNeeded
in interface Terminal
IOException
public boolean hasWeirdWrap()
hasWeirdWrap
in interface Terminal
public boolean isEchoEnabled()
isEchoEnabled
in interface Terminal
public void setEchoEnabled(boolean enabled)
setEchoEnabled
in interface Terminal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |