Package org.jboss.as.cli.handlers
Class ReadAttributeHandler
- 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.ReadAttributeHandler
-
- All Implemented Interfaces:
CliEventListener,CommandHandler,OperationCommand
public class ReadAttributeHandler 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 ReadAttributeHandler(CommandContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.dmr.ModelNodebuildRequestWithoutHeaders(CommandContext ctx)protected StringBuilderformatResponse(CommandContext ctx, org.jboss.dmr.ModelNode opResponse, boolean composite, StringBuilder buf)protected OperationRequestAddressgetAddress(CommandContext ctx, boolean completion)protected voidhandleResponse(CommandContext ctx, org.jboss.dmr.ModelNode response, 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, getArguments, getArgumentsMap, 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, getArguments, handle, hasArgument, hasArgument, isBatchMode
-
Methods inherited from interface org.jboss.as.cli.OperationCommand
buildHandledRequest, buildRequest
-
-
-
-
Constructor Detail
-
ReadAttributeHandler
public ReadAttributeHandler(CommandContext ctx)
-
-
Method Detail
-
recognizeArguments
protected void recognizeArguments(CommandContext ctx) throws CommandFormatException
- Overrides:
recognizeArgumentsin classCommandHandlerWithArguments- Throws:
CommandFormatException
-
buildRequestWithoutHeaders
public org.jboss.dmr.ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException
- Specified by:
buildRequestWithoutHeadersin classBaseOperationCommand- Throws:
CommandFormatException
-
handleResponse
protected void handleResponse(CommandContext ctx, org.jboss.dmr.ModelNode response, boolean composite) throws CommandFormatException
- Overrides:
handleResponsein classBaseOperationCommand- Throws:
CommandFormatException
-
formatResponse
protected StringBuilder formatResponse(CommandContext ctx, org.jboss.dmr.ModelNode opResponse, boolean composite, StringBuilder buf) throws CommandFormatException
- Throws:
CommandFormatException
-
getAddress
protected OperationRequestAddress getAddress(CommandContext ctx, boolean completion) throws CommandFormatException
- Throws:
CommandFormatException
-
-