Class Commands


  • public class Commands
    extends Object
    Utilities to support CommandName construction.
    • Field Detail

      • CMD_ROOT

        public static final CommandName CMD_ROOT
        Magic value signaling the top level.
    • Method Detail

      • key

        public static com.google.inject.Key<org.apache.sshd.server.command.Command> key​(String name)
      • key

        public static com.google.inject.Key<org.apache.sshd.server.command.Command> key​(CommandName name)
      • key

        public static com.google.inject.Key<org.apache.sshd.server.command.Command> key​(CommandName parent,
                                                                                        String name)
      • key

        public static com.google.inject.Key<org.apache.sshd.server.command.Command> key​(CommandName parent,
                                                                                        String name,
                                                                                        String descr)
      • named

        public static CommandName named​(String value)
        Create a CommandName annotation for the supplied name.
      • nameOf

        public static String nameOf​(CommandName name)
        Return the name of this command, possibly including any parents.
      • isChild

        public static boolean isChild​(CommandName parent,
                                      CommandName name)
        Is the second command a direct child of the first command?