public class ScpCommand extends Object implements org.apache.sshd.server.Command, Runnable, org.apache.sshd.server.FileSystemAware
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.sshd.server.ExitCallback |
callback |
protected OutputStream |
err |
protected IOException |
error |
protected static int |
ERROR |
protected InputStream |
in |
protected static org.slf4j.Logger |
log |
protected String |
name |
protected static int |
OK |
protected boolean |
optD |
protected boolean |
optF |
protected boolean |
optP |
protected boolean |
optR |
protected boolean |
optT |
protected boolean |
optV |
protected OutputStream |
out |
protected String |
path |
protected org.apache.sshd.server.FileSystemView |
root |
protected static int |
WARNING |
| Constructor and Description |
|---|
ScpCommand(String[] args) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ack() |
void |
destroy() |
protected int |
readAck(boolean canEof) |
protected void |
readDir(org.apache.sshd.server.SshFile path) |
protected void |
readFile(org.apache.sshd.server.SshFile path) |
protected String |
readLine() |
void |
run() |
void |
setErrorStream(OutputStream err) |
void |
setExitCallback(org.apache.sshd.server.ExitCallback callback) |
void |
setFileSystemView(org.apache.sshd.server.FileSystemView view) |
void |
setInputStream(InputStream in) |
void |
setOutputStream(OutputStream out) |
void |
start(org.apache.sshd.server.Environment env) |
protected void |
writeDir(String header,
org.apache.sshd.server.SshFile path) |
protected void |
writeFile(String header,
org.apache.sshd.server.SshFile path) |
protected static final org.slf4j.Logger log
protected static final int OK
protected static final int WARNING
protected static final int ERROR
protected boolean optR
protected boolean optT
protected boolean optF
protected boolean optV
protected boolean optD
protected boolean optP
protected org.apache.sshd.server.FileSystemView root
protected InputStream in
protected OutputStream out
protected OutputStream err
protected org.apache.sshd.server.ExitCallback callback
protected IOException error
public ScpCommand(String[] args)
public void setInputStream(InputStream in)
setInputStream in interface org.apache.sshd.server.Commandpublic void setOutputStream(OutputStream out)
setOutputStream in interface org.apache.sshd.server.Commandpublic void setErrorStream(OutputStream err)
setErrorStream in interface org.apache.sshd.server.Commandpublic void setExitCallback(org.apache.sshd.server.ExitCallback callback)
setExitCallback in interface org.apache.sshd.server.Commandpublic void start(org.apache.sshd.server.Environment env) throws IOException
start in interface org.apache.sshd.server.CommandIOExceptionpublic void destroy()
destroy in interface org.apache.sshd.server.Commandprotected void writeDir(String header, org.apache.sshd.server.SshFile path) throws IOException
IOExceptionprotected void writeFile(String header, org.apache.sshd.server.SshFile path) throws IOException
IOExceptionprotected String readLine() throws IOException
IOExceptionprotected void readFile(org.apache.sshd.server.SshFile path) throws IOException
IOExceptionprotected void readDir(org.apache.sshd.server.SshFile path) throws IOException
IOExceptionprotected void ack() throws IOException
IOExceptionprotected int readAck(boolean canEof) throws IOException
IOExceptionpublic void setFileSystemView(org.apache.sshd.server.FileSystemView view)
setFileSystemView in interface org.apache.sshd.server.FileSystemAwareCopyright © 2003–2013 The Apache Software Foundation. All rights reserved.