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 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 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.Command
public void setOutputStream(OutputStream out)
setOutputStream
in interface org.apache.sshd.server.Command
public void setErrorStream(OutputStream err)
setErrorStream
in interface org.apache.sshd.server.Command
public void setExitCallback(org.apache.sshd.server.ExitCallback callback)
setExitCallback
in interface org.apache.sshd.server.Command
public void start(org.apache.sshd.server.Environment env) throws IOException
start
in interface org.apache.sshd.server.Command
IOException
public void destroy()
destroy
in interface org.apache.sshd.server.Command
protected void writeDir(String header, org.apache.sshd.server.SshFile path) throws IOException
IOException
protected void writeFile(String header, org.apache.sshd.server.SshFile path) throws IOException
IOException
protected String readLine() throws IOException
IOException
protected void readFile(org.apache.sshd.server.SshFile path) throws IOException
IOException
protected void readDir(org.apache.sshd.server.SshFile path) throws IOException
IOException
protected void ack() throws IOException
IOException
protected int readAck(boolean canEof) throws IOException
IOException
public void setFileSystemView(org.apache.sshd.server.FileSystemView view)
setFileSystemView
in interface org.apache.sshd.server.FileSystemAware
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.