Package com.google.gerrit.sshd
Class Commands
java.lang.Object
com.google.gerrit.sshd.Commands
Utilities to support
CommandName
construction.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommandName
Magic value signaling the top level.static final String
Magic value signaling the top level. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isChild
(CommandName parent, CommandName name) Is the second command a direct child of the first command?static com.google.inject.Key
<org.apache.sshd.server.command.Command> key
(CommandName name) static com.google.inject.Key
<org.apache.sshd.server.command.Command> key
(CommandName parent, String name) static com.google.inject.Key
<org.apache.sshd.server.command.Command> key
(CommandName parent, String name, String descr) static com.google.inject.Key
<org.apache.sshd.server.command.Command> static CommandName
named
(CommandName parent, String name) Create a CommandName annotation for the supplied name.static CommandName
named
(CommandName parent, String name, String descr) Create a CommandName annotation for the supplied name and description.static CommandName
Create a CommandName annotation for the supplied name.static String
nameOf
(CommandName name) Return the name of this command, possibly including any parents.
-
Field Details
-
ROOT
Magic value signaling the top level.- See Also:
-
CMD_ROOT
Magic value signaling the top level.
-
-
Method Details
-
key
-
key
-
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
Create a CommandName annotation for the supplied name. -
named
Create a CommandName annotation for the supplied name. -
named
Create a CommandName annotation for the supplied name and description. -
nameOf
Return the name of this command, possibly including any parents. -
isChild
Is the second command a direct child of the first command?
-