Class GitReceiveCommand
- java.lang.Object
-
- org.uberfire.java.nio.fs.jgit.daemon.ssh.BaseGitCommand
-
- org.uberfire.java.nio.fs.jgit.daemon.ssh.GitReceiveCommand
-
- All Implemented Interfaces:
Runnable,org.apache.sshd.server.command.Command,org.apache.sshd.server.command.CommandLifecycle,org.apache.sshd.server.SessionAware
public class GitReceiveCommand 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 GitReceiveCommand(String command, JGitFileSystemProvider.RepositoryResolverImpl<BaseGitCommand> repositoryResolver, org.eclipse.jgit.transport.resolver.ReceivePackFactory<BaseGitCommand> receivePackFactory, 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
-
GitReceiveCommand
public GitReceiveCommand(String command, JGitFileSystemProvider.RepositoryResolverImpl<BaseGitCommand> repositoryResolver, org.eclipse.jgit.transport.resolver.ReceivePackFactory<BaseGitCommand> receivePackFactory, 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
-
-