public class CRaSHCommand extends AbstractCommand implements Runnable, Terminal
| Modifier and Type | Field and Description |
|---|---|
private JLineProcessor |
console
.
|
private SSHContext |
context
.
|
private String |
encoding
.
|
private CRaSHCommandFactory |
factory
.
|
protected static Logger |
log
.
|
private Thread |
thread
.
|
| Constructor and Description |
|---|
CRaSHCommand(CRaSHCommandFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
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) |
setErrorStream, setExitCallback, setInputStream, setOutputStream, setSessionprivate final CRaSHCommandFactory factory
private SSHContext context
private JLineProcessor console
public CRaSHCommand(CRaSHCommandFactory factory)
public void start(org.apache.sshd.server.Environment env) throws IOException
start in interface org.apache.sshd.server.CommandIOExceptionpublic SSHContext getContext()
public void destroy()
destroy in interface org.apache.sshd.server.Commandpublic String getOutputEncoding()
getOutputEncoding in interface Terminalpublic boolean isSupported()
isSupported in interface Terminalpublic boolean isAnsiSupported()
isAnsiSupported in interface Terminalpublic OutputStream wrapOutIfNeeded(OutputStream out)
wrapOutIfNeeded in interface Terminalpublic InputStream wrapInIfNeeded(InputStream in) throws IOException
wrapInIfNeeded in interface TerminalIOExceptionpublic boolean hasWeirdWrap()
hasWeirdWrap in interface Terminalpublic boolean isEchoEnabled()
isEchoEnabled in interface Terminalpublic void setEchoEnabled(boolean enabled)
setEchoEnabled in interface TerminalCopyright © 2015 eXo Platform SAS. All Rights Reserved.