Package org.jboss.as.cli.handlers
Class AttachmentHandler
-
- All Implemented Interfaces:
CliEventListener,CommandHandler,OperationCommand
public class AttachmentHandler extends BatchModeCommandHandler
- Author:
- jdenise@redhat.com
-
-
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 AttachmentHandler(CommandContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationCommand.HandledRequestbuildHandledRequest(CommandContext ctx, Attachments attachments)protected org.jboss.dmr.ModelNodebuildRequestWithoutHeaders(CommandContext ctx)protected voidhandleResponse(CommandContext ctx, OperationResponse response, boolean composite)protected voidrecognizeArguments(CommandContext ctx)-
Methods inherited from class org.jboss.as.cli.handlers.BatchModeCommandHandler
isBatchMode
-
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, 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
-
Methods inherited from interface org.jboss.as.cli.OperationCommand
buildRequest
-
-
-
-
Constructor Detail
-
AttachmentHandler
public AttachmentHandler(CommandContext ctx)
-
-
Method Detail
-
recognizeArguments
protected void recognizeArguments(CommandContext ctx) throws CommandFormatException
- Overrides:
recognizeArgumentsin classCommandHandlerWithArguments- Throws:
CommandFormatException
-
handleResponse
protected void handleResponse(CommandContext ctx, OperationResponse response, 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
-
buildHandledRequest
public OperationCommand.HandledRequest buildHandledRequest(CommandContext ctx, Attachments attachments) throws CommandFormatException
- Throws:
CommandFormatException
-
-