org.crsh.ssh.term
Class AbstractCommand
java.lang.Object
org.crsh.ssh.term.AbstractCommand
- All Implemented Interfaces:
- org.apache.sshd.server.Command, org.apache.sshd.server.SessionAware
- Direct Known Subclasses:
- CRaSHCommand, FailCommand, SSHInlineCommand
-
public abstract class AbstractCommand
- extends Object
-
- implements org.apache.sshd.server.Command, org.apache.sshd.server.SessionAware
-
Field Summary |
protected org.apache.sshd.server.ExitCallback |
callback
. |
protected OutputStream |
err
. |
protected InputStream |
in
. |
protected OutputStream |
out
. |
protected org.apache.sshd.server.session.ServerSession |
session
. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.sshd.server.Command |
destroy, start |
in
protected InputStream in
-
.
out
protected OutputStream out
-
.
err
protected OutputStream err
-
.
callback
protected org.apache.sshd.server.ExitCallback callback
-
.
session
protected org.apache.sshd.server.session.ServerSession session
-
.
AbstractCommand
public AbstractCommand()
setInputStream
public final void setInputStream(InputStream in)
-
- Specified by:
setInputStream
in interface org.apache.sshd.server.Command
-
setOutputStream
public final void setOutputStream(OutputStream out)
-
- Specified by:
setOutputStream
in interface org.apache.sshd.server.Command
-
setErrorStream
public final void setErrorStream(OutputStream err)
-
- Specified by:
setErrorStream
in interface org.apache.sshd.server.Command
-
setExitCallback
public final void setExitCallback(org.apache.sshd.server.ExitCallback callback)
-
- Specified by:
setExitCallback
in interface org.apache.sshd.server.Command
-
setSession
public void setSession(org.apache.sshd.server.session.ServerSession session)
-
- Specified by:
setSession
in interface org.apache.sshd.server.SessionAware
-
Copyright © 2015 eXo Platform SAS. All Rights Reserved.