org.crsh.jcr
Class SCPCommand
java.lang.Object
org.crsh.ssh.term.AbstractCommand
org.crsh.jcr.SCPCommand
- All Implemented Interfaces:
- Runnable, org.apache.sshd.server.Command, org.apache.sshd.server.SessionAware
- Direct Known Subclasses:
- SinkCommand, SourceCommand
public abstract class SCPCommand
- extends AbstractCommand
- implements Runnable
Three internal options in SCP:
-f
(from) indicates source mode
-t
(to) indicates sink mode
-d
indicates that the target is expected to be a directory
- Version:
- $Revision$
- Author:
- Julien Viet
Field Summary |
protected static int |
ERROR
. |
protected org.slf4j.Logger |
log
. |
protected static int |
OK
. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.slf4j.Logger log
- .
OK
protected static final int OK
- .
- See Also:
- Constant Field Values
ERROR
protected static final int ERROR
- .
- See Also:
- Constant Field Values
SCPCommand
protected SCPCommand(String target)
ack
protected final void ack()
throws IOException
- Throws:
IOException
readAck
protected final void readAck()
throws IOException
- Throws:
IOException
readLine
protected final String readLine()
throws IOException
- Throws:
IOException
start
public final void start(org.apache.sshd.server.Environment env)
throws IOException
- Specified by:
start
in interface org.apache.sshd.server.Command
- Throws:
IOException
destroy
public final void destroy()
- Specified by:
destroy
in interface org.apache.sshd.server.Command
run
public final void run()
- Specified by:
run
in interface Runnable
execute
protected abstract void execute(javax.jcr.Session session,
String path)
throws Exception
- Throws:
Exception
Copyright © 2011 eXo Platform SAS. All Rights Reserved.