|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sshd.server.command.ScpCommand
public class ScpCommand
This commands provide SCP support on both server and client side. Permissions and preservation of access / modification times on files are not supported.
| Field Summary | |
|---|---|
protected ExitCallback |
callback
|
protected java.io.OutputStream |
err
|
protected java.io.IOException |
error
|
protected static int |
ERROR
|
protected java.io.InputStream |
in
|
protected static org.slf4j.Logger |
log
|
protected java.lang.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 java.io.OutputStream |
out
|
protected java.lang.String |
root
|
protected static int |
WARNING
|
| Constructor Summary | |
|---|---|
ScpCommand(java.lang.String[] args)
|
|
| Method Summary | |
|---|---|
protected void |
ack()
|
void |
destroy()
Destroy the shell. |
protected int |
readAck(boolean canEof)
|
protected void |
readDir(java.io.File path)
|
protected void |
readFile(java.io.File path)
|
protected java.lang.String |
readLine()
|
void |
run()
|
void |
setErrorStream(java.io.OutputStream err)
Set the error stream that can be used by the shell to write its errors. |
void |
setExitCallback(ExitCallback callback)
Set the callback that the shell has to call when it is closed. |
void |
setInputStream(java.io.InputStream in)
Set the input stream that can be used by the shell to read input. |
void |
setOutputStream(java.io.OutputStream out)
Set the output stream that can be used by the shell to write its output. |
void |
start(Environment env)
Starts the shell. |
protected void |
writeDir(java.lang.String header,
java.io.File path)
|
protected void |
writeFile(java.lang.String header,
java.io.File path)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger log
protected static final int OK
protected static final int WARNING
protected static final int ERROR
protected java.lang.String name
protected boolean optR
protected boolean optT
protected boolean optF
protected boolean optV
protected boolean optD
protected boolean optP
protected java.lang.String root
protected java.io.InputStream in
protected java.io.OutputStream out
protected java.io.OutputStream err
protected ExitCallback callback
protected java.io.IOException error
| Constructor Detail |
|---|
public ScpCommand(java.lang.String[] args)
| Method Detail |
|---|
public void setInputStream(java.io.InputStream in)
Command
setInputStream in interface Commandpublic void setOutputStream(java.io.OutputStream out)
Command
setOutputStream in interface Commandpublic void setErrorStream(java.io.OutputStream err)
Command
setErrorStream in interface Commandpublic void setExitCallback(ExitCallback callback)
Command
setExitCallback in interface Command
public void start(Environment env)
throws java.io.IOException
Command
start in interface Commandjava.io.IOExceptionpublic void destroy()
Command
destroy in interface Commandpublic void run()
run in interface java.lang.Runnable
protected void writeDir(java.lang.String header,
java.io.File path)
throws java.io.IOException
java.io.IOException
protected void writeFile(java.lang.String header,
java.io.File path)
throws java.io.IOException
java.io.IOException
protected java.lang.String readLine()
throws java.io.IOException
java.io.IOException
protected void readFile(java.io.File path)
throws java.io.IOException
java.io.IOException
protected void readDir(java.io.File path)
throws java.io.IOException
java.io.IOException
protected void ack()
throws java.io.IOException
java.io.IOException
protected int readAck(boolean canEof)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||