com.maverick.sshd.shell
Class Alias
java.lang.Object
com.maverick.sshd.shell.AbstractCommand
com.maverick.sshd.shell.Alias
- All Implemented Interfaces:
- ShellCommand, Completor
public class Alias
- extends AbstractCommand
|
Constructor Summary |
Alias()
|
| Methods inherited from class com.maverick.sshd.shell.AbstractCommand |
complete, getCommandName, getDescription, getExitCode, getName, getOptions, getSignature, getSubsystem, isBuiltIn, setBuiltIn, setDescription, setName, setSignature, setSubsystem |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
userlist
public static Map<String,Map<String,String>> userlist
predefined
public static Map<String,String> predefined
Alias
public Alias()
run
public void run(org.apache.commons.cli.CommandLine cli,
VirtualProcess process)
throws IOException
- Throws:
IOException
setPredefinedAlias
public static void setPredefinedAlias(String alias,
String cmd)
hasAlias
public static boolean hasAlias(String alias,
String username)
getAliasCommand
public static String getAliasCommand(String alias,
String username)
getCollection
public List<String> getCollection(int i)
throws Exception
- Overrides:
getCollection in class AbstractCommand
- Throws:
Exception
Copyright © 2012. All Rights Reserved.