public class ShellCommandFactory extends CommandFactory<ShellCommand>
commands, configurators
Constructor and Description |
---|
ShellCommandFactory(CommandFactory<? extends ShellCommand>... commandFactories) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureCommand(ShellCommand c,
com.sshtools.common.ssh.SshConnection con) |
RootShell |
createShell(com.sshtools.common.ssh.SshConnection connection) |
java.util.Set<java.lang.String> |
getSupportedCommands() |
void |
installFactory(CommandFactory<ShellCommand> factory) |
protected void |
installShellCommands() |
protected ShellCommand |
newInstance(java.lang.String command,
com.sshtools.common.ssh.SshConnection con) |
boolean |
supportsCommand(java.lang.String command) |
addConfigurator, createCommand, installCommand, installCommand, removeConfigurator, uninstallCommand
@SafeVarargs public ShellCommandFactory(CommandFactory<? extends ShellCommand>... commandFactories)
protected void installShellCommands()
public void installFactory(CommandFactory<ShellCommand> factory)
public java.util.Set<java.lang.String> getSupportedCommands()
getSupportedCommands
in class CommandFactory<ShellCommand>
protected ShellCommand newInstance(java.lang.String command, com.sshtools.common.ssh.SshConnection con) throws UnsupportedCommandException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.io.IOException, com.sshtools.common.permissions.PermissionDeniedException
newInstance
in class CommandFactory<ShellCommand>
UnsupportedCommandException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.io.IOException
com.sshtools.common.permissions.PermissionDeniedException
public boolean supportsCommand(java.lang.String command)
supportsCommand
in class CommandFactory<ShellCommand>
public RootShell createShell(com.sshtools.common.ssh.SshConnection connection) throws com.sshtools.common.permissions.PermissionDeniedException, java.io.IOException
com.sshtools.common.permissions.PermissionDeniedException
java.io.IOException
protected void configureCommand(ShellCommand c, com.sshtools.common.ssh.SshConnection con) throws java.io.IOException, com.sshtools.common.permissions.PermissionDeniedException
configureCommand
in class CommandFactory<ShellCommand>
java.io.IOException
com.sshtools.common.permissions.PermissionDeniedException
Copyright © 2022. All rights reserved.