Interface SshCommandFactory
public interface SshCommandFactory
Describes a factory for parsing commands and creating
SshCommand instances to run them.-
Method Summary
-
Method Details
-
create
- Parameters:
context- context describing the command, which can be used by the factory implementations to determine whether it supports the command or not- Returns:
- an
SshCommandimplementing the described command, which will beemptyif the command is notsupported - Since:
- 5.12
-
supports
- Parameters:
command- the command from the remote client (e.g. "git-upload-pack path/to/repository")- Returns:
trueif this factory can create anSshCommandfor the provided command; otherwise,falseto try other factories
-