Package com.google.gerrit.sshd.commands
Class UploadArchive
- java.lang.Object
-
- com.google.gerrit.sshd.BaseCommand
-
- com.google.gerrit.sshd.AbstractGitCommand
-
- com.google.gerrit.sshd.commands.UploadArchive
-
- All Implemented Interfaces:
org.apache.sshd.server.command.Command
,org.apache.sshd.server.command.CommandDirectErrorStreamAware
,org.apache.sshd.server.command.CommandDirectInputStreamAware
,org.apache.sshd.server.command.CommandDirectOutputStreamAware
,org.apache.sshd.server.command.CommandDirectStreamsAware
,org.apache.sshd.server.command.CommandLifecycle
public class UploadArchive extends AbstractGitCommand
Allows getting archives for Git repositories over SSH using the Git upload-archive protocol.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gerrit.sshd.BaseCommand
BaseCommand.CommandRunnable, BaseCommand.Failure, BaseCommand.ProjectCommandRunnable, BaseCommand.UnloggedFailure
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.sshd.AbstractGitCommand
extraParameters, project, projectName, projectState, repo, session
-
Fields inherited from class com.google.gerrit.sshd.BaseCommand
cleanup, dynamicBeans, ENC, err, exit, in, injector, out, STATUS_NOT_ADMIN, user
-
-
Constructor Summary
Constructors Constructor Description UploadArchive()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
readArguments()
Read and parse arguments from input stream.protected void
runImpl()
-
Methods inherited from class com.google.gerrit.sshd.AbstractGitCommand
start
-
Methods inherited from class com.google.gerrit.sshd.BaseCommand
destroy, die, die, die, enableGracefulStop, getArguments, getName, getPluginName, getTaskDescription, getTrimmedArguments, newCmdLineParser, onExit, parseCommandLine, parseCommandLine, provideStateTo, setArguments, setErrorStream, setExitCallback, setInputStream, setOutputStream, startThread, toPrintWriter, usage, writeError
-
-
-
-
Method Detail
-
readArguments
protected void readArguments() throws IOException, BaseCommand.Failure
Read and parse arguments from input stream. This method gets the arguments from input stream, in Pkt-line format, then parses them to fill the options object.- Throws:
IOException
BaseCommand.Failure
-
runImpl
protected void runImpl() throws IOException, PermissionBackendException, BaseCommand.Failure
- Specified by:
runImpl
in classAbstractGitCommand
- Throws:
IOException
PermissionBackendException
BaseCommand.Failure
-
-