Package org.jboss.as.cli.handlers
Class LsHandler
- java.lang.Object
-
- org.jboss.as.cli.handlers.CommandHandlerWithArguments
-
- org.jboss.as.cli.handlers.CommandHandlerWithHelp
-
- org.jboss.as.cli.handlers.BaseOperationCommand
-
- org.jboss.as.cli.handlers.LsHandler
-
- All Implemented Interfaces:
CliEventListener,CommandHandler,OperationCommand
public class LsHandler extends BaseOperationCommand
- Author:
- Alexey Loubyansky
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.cli.OperationCommand
OperationCommand.HandledRequest
-
-
Field Summary
-
Fields inherited from class org.jboss.as.cli.handlers.BaseOperationCommand
accessRequirement, headers, params, requiredAddress
-
Fields inherited from class org.jboss.as.cli.handlers.CommandHandlerWithHelp
helpArg
-
-
Constructor Summary
Constructors Constructor Description LsHandler(CommandContext ctx)LsHandler(CommandContext ctx, String command)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jboss.dmr.ModelNodebuildRequestWithoutHeaders(CommandContext ctx)Collection<CommandArgument>getArguments(CommandContext ctx)Returns a collection of the command arguments the handler supports in the current context.protected Map<String,CommandArgument>getArgumentsMap(CommandContext ctx)protected IntegergetAsInteger(org.jboss.dmr.ModelNode attrDescr, String name)protected StringgetAsString(org.jboss.dmr.ModelNode attrDescr, String name)protected static StringgetNodePath(String nodePathString)protected voidhandleResponse(CommandContext ctx, org.jboss.dmr.ModelNode outcome, boolean composite)protected voidrecognizeArguments(CommandContext ctx)-
Methods inherited from class org.jboss.as.cli.handlers.BaseOperationCommand
addArgument, addHeaders, addRequiredPath, addRequiredPath, buildRequest, buildRequestWOValidation, cliEvent, displayResponseHeaders, doHandle, getAttachments, getRequiredAddress, getRequiredType, handleAttachedFile, handleResponse, isAddressValid, isAvailable, isDependsOnProfile, setParams, setupAccessRequirement
-
Methods inherited from class org.jboss.as.cli.handlers.CommandHandlerWithHelp
displayHelp, handle, isBatchMode, printHelp, printList
-
Methods inherited from class org.jboss.as.cli.handlers.CommandHandlerWithArguments
getArgument, hasArgument, hasArgument
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.cli.CommandHandler
getArgument, handle, hasArgument, hasArgument, isBatchMode
-
Methods inherited from interface org.jboss.as.cli.OperationCommand
buildHandledRequest, buildRequest
-
-
-
-
Constructor Detail
-
LsHandler
public LsHandler(CommandContext ctx)
-
LsHandler
public LsHandler(CommandContext ctx, String command)
-
-
Method Detail
-
recognizeArguments
protected void recognizeArguments(CommandContext ctx) throws CommandFormatException
- Overrides:
recognizeArgumentsin classCommandHandlerWithArguments- Throws:
CommandFormatException
-
handleResponse
protected void handleResponse(CommandContext ctx, org.jboss.dmr.ModelNode outcome, boolean composite) throws CommandLineException
- Overrides:
handleResponsein classBaseOperationCommand- Throws:
CommandLineException
-
buildRequestWithoutHeaders
protected org.jboss.dmr.ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException
- Specified by:
buildRequestWithoutHeadersin classBaseOperationCommand- Throws:
CommandFormatException
-
getArgumentsMap
protected Map<String,CommandArgument> getArgumentsMap(CommandContext ctx)
- Overrides:
getArgumentsMapin classCommandHandlerWithArguments
-
getArguments
public Collection<CommandArgument> getArguments(CommandContext ctx)
Description copied from interface:CommandHandlerReturns a collection of the command arguments the handler supports in the current context.- Specified by:
getArgumentsin interfaceCommandHandler- Overrides:
getArgumentsin classCommandHandlerWithArguments- Parameters:
ctx- current command line context- Returns:
- list of the command arguments supported in the current context
-
-