Package org.jboss.as.cli.handlers
Class CommandCommandHandler
- java.lang.Object
-
- org.jboss.as.cli.handlers.CommandHandlerWithArguments
-
- org.jboss.as.cli.handlers.CommandHandlerWithHelp
-
- org.jboss.as.cli.handlers.CommandCommandHandler
-
- All Implemented Interfaces:
CommandHandler
public class CommandCommandHandler extends CommandHandlerWithHelp
- Author:
- Alexey Loubyansky
-
-
Field Summary
-
Fields inherited from class org.jboss.as.cli.handlers.CommandHandlerWithHelp
helpArg
-
-
Constructor Summary
Constructors Constructor Description CommandCommandHandler(CommandRegistry cmdRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoHandle(CommandContext ctx)protected List<String>getExistingCommands()protected List<org.jboss.dmr.Property>getNodeProperties(CommandContext ctx)protected org.jboss.dmr.ModelNodeinitRequest(CommandContext ctx)protected voidvalidateInput(CommandContext ctx, String typePath, String propertyName, boolean isChildType)-
Methods inherited from class org.jboss.as.cli.handlers.CommandHandlerWithHelp
displayHelp, handle, isAvailable, isBatchMode, printHelp, printList
-
Methods inherited from class org.jboss.as.cli.handlers.CommandHandlerWithArguments
addArgument, getArgument, getArguments, getArgumentsMap, hasArgument, hasArgument, recognizeArguments
-
-
-
-
Constructor Detail
-
CommandCommandHandler
public CommandCommandHandler(CommandRegistry cmdRegistry)
-
-
Method Detail
-
doHandle
protected void doHandle(CommandContext ctx) throws CommandLineException
- Specified by:
doHandlein classCommandHandlerWithHelp- Throws:
CommandLineException
-
getNodeProperties
protected List<org.jboss.dmr.Property> getNodeProperties(CommandContext ctx) throws CommandFormatException
- Throws:
CommandFormatException
-
initRequest
protected org.jboss.dmr.ModelNode initRequest(CommandContext ctx) throws CommandFormatException
- Throws:
CommandFormatException
-
validateInput
protected void validateInput(CommandContext ctx, String typePath, String propertyName, boolean isChildType) throws CommandFormatException
- Throws:
CommandFormatException
-
-