Class GitUploadCommand
- java.lang.Object
-
- org.uberfire.java.nio.fs.jgit.daemon.ssh.BaseGitCommand
-
- org.uberfire.java.nio.fs.jgit.daemon.ssh.GitUploadCommand
-
- All Implemented Interfaces:
Runnable,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,org.apache.sshd.server.session.ServerSessionAware
public class GitUploadCommand extends BaseGitCommand
-
-
Field Summary
-
Fields inherited from class org.uberfire.java.nio.fs.jgit.daemon.ssh.BaseGitCommand
command, repositoryName, repositoryResolver, SUBJECT_KEY
-
-
Constructor Summary
Constructors Constructor Description GitUploadCommand(String command, JGitFileSystemProvider.RepositoryResolverImpl<BaseGitCommand> repositoryResolver, org.eclipse.jgit.transport.resolver.UploadPackFactory uploadPackFactory, ExecutorService executorService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecute(org.eclipse.jgit.lib.Repository repository, InputStream in, OutputStream out, OutputStream err)protected StringgetCommandName()-
Methods inherited from class org.uberfire.java.nio.fs.jgit.daemon.ssh.BaseGitCommand
destroy, getUser, run, setErrorStream, setExitCallback, setInputStream, setOutputStream, setSession, start
-
-
-
-
Constructor Detail
-
GitUploadCommand
public GitUploadCommand(String command, JGitFileSystemProvider.RepositoryResolverImpl<BaseGitCommand> repositoryResolver, org.eclipse.jgit.transport.resolver.UploadPackFactory uploadPackFactory, ExecutorService executorService)
-
-
Method Detail
-
getCommandName
protected String getCommandName()
- Specified by:
getCommandNamein classBaseGitCommand
-
execute
protected void execute(org.eclipse.jgit.lib.Repository repository, InputStream in, OutputStream out, OutputStream err)- Specified by:
executein classBaseGitCommand
-
-