|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.platform.ExecutableCommand
com.maverick.sshd.scp.ScpCommand
public class ScpCommand
Provides support for the SCP command. To enable this support add this class
in the com.maverick.sshd.SshDaemon#configure(com.maverick.sshd.ConfigurationContext)
method using the following code
context.addCommand("scp", ScpCommand.class);
| Field Summary |
|---|
| Fields inherited from class com.maverick.sshd.platform.ExecutableCommand |
|---|
session, stderr, stdin, stdout, STILL_ACTIVE |
| Constructor Summary | |
|---|---|
ScpCommand()
Creates a new ScpCommand object. |
|
| Method Summary | |
|---|---|
protected FilenamePattern |
createFilenamePattern(java.lang.String pattern)
Creates a FilenamePattern. |
boolean |
createProcess(java.lang.String command,
java.util.Map environment)
Parse the SCP command line and configure the command ready for execution. |
int |
getExitCode()
Get the exit code for this process. |
void |
kill()
Called when channel is closing |
void |
onStart()
Start the process. |
void |
run()
|
| Methods inherited from class com.maverick.sshd.platform.ExecutableCommand |
|---|
getInputStream, getOutputStream, getStderrOutputStream, init, processStdinData, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScpCommand()
| Method Detail |
|---|
public boolean createProcess(java.lang.String command,
java.util.Map environment)
createProcess in class ExecutableCommandcommand - environment -
public int getExitCode()
ExecutableCommandExecutableCommand.STILL_ACTIVE.
getExitCode in class ExecutableCommandpublic void kill()
kill in class ExecutableCommandpublic void onStart()
onStart in class ExecutableCommandjava.io.IOExceptionprotected FilenamePattern createFilenamePattern(java.lang.String pattern)
FilenamePattern. Override to customize pattern matching
behaviour.
pattern - String
public void run()
run in interface java.lang.Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||