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:
com.google.gerrit.server.logging.TraceContext.TraceIdConsumer
,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
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Read and parse arguments from input stream.protected void
runImpl()
Methods inherited from class com.google.gerrit.sshd.AbstractGitCommand
accept, start
Methods inherited from class com.google.gerrit.sshd.BaseCommand
destroy, die, die, die, enableGracefulStop, getArguments, getName, getPluginName, getSession, getTaskDescription, getTrimmedArguments, newCmdLineParser, onExit, parseCommandLine, parseCommandLine, provideStateTo, setArguments, setErrorStream, setExitCallback, setForceTracing, setInputStream, setOutputStream, setTraceId, startThread, toPrintWriter, usage, writeError
-
Constructor Details
-
UploadArchive
public UploadArchive()
-
-
Method Details
-
readArguments
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
- Specified by:
runImpl
in classAbstractGitCommand
- Throws:
IOException
PermissionBackendException
BaseCommand.Failure
-