public abstract class SCPCommand extends AbstractCommand implements Runnable
| Modifier and Type | Field and Description |
|---|---|
private org.apache.sshd.server.Environment |
env
.
|
protected static int |
ERROR
.
|
protected Logger |
log
.
|
protected static int |
OK
.
|
private String |
target
.
|
private Thread |
thread
.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SCPCommand(String target) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ack() |
void |
destroy() |
private void |
execute() |
protected abstract void |
execute(javax.jcr.Session session,
String path) |
(package private) InputStream |
read(int length)
Read from the input stream an exact amount of bytes.
|
protected void |
readAck() |
protected String |
readLine() |
void |
run() |
void |
start(org.apache.sshd.server.Environment env) |
setErrorStream, setExitCallback, setInputStream, setOutputStream, setSessionprotected static final int OK
protected static final int ERROR
private org.apache.sshd.server.Environment env
protected SCPCommand(String target)
final InputStream read(int length) throws IOException
length - the expected data length to readIOException - any io exceptionprotected final void ack() throws IOException
IOExceptionprotected final void readAck() throws IOException
IOExceptionprotected final String readLine() throws IOException
IOExceptionpublic final void start(org.apache.sshd.server.Environment env) throws IOException
start in interface org.apache.sshd.server.CommandIOExceptionpublic final void destroy()
destroy in interface org.apache.sshd.server.CommandCopyright © 2013 eXo Platform SAS. All Rights Reserved.