Class Commands

java.lang.Object
com.google.gerrit.sshd.Commands

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

    • ROOT

      public static final String ROOT
      Magic value signaling the top level.
      See Also:
    • CMD_ROOT

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

    • 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.
    • named

      public static CommandName named(CommandName parent, String name)
      Create a CommandName annotation for the supplied name.
    • named

      public static CommandName named(CommandName parent, String name, String descr)
      Create a CommandName annotation for the supplied name and description.
    • 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?