public class DefaultCallbackHandler extends ValidatingCallbackHandler implements ParsedCommandLine
operationStr| Constructor and Description |
|---|
DefaultCallbackHandler() |
DefaultCallbackHandler(boolean validate) |
DefaultCallbackHandler(OperationRequestAddress prefix) |
assertValidNodeName, assertValidParameterName, assertValidType, startpublic DefaultCallbackHandler()
public DefaultCallbackHandler(boolean validate)
public DefaultCallbackHandler(OperationRequestAddress prefix)
@Deprecated public void parse(OperationRequestAddress initialAddress, String argsStr) throws CommandFormatException
CommandFormatExceptionpublic void parse(OperationRequestAddress initialAddress, String argsStr, CommandContext ctx) throws CommandFormatException
CommandFormatException@Deprecated public void parse(OperationRequestAddress initialAddress, String argsStr, boolean validation) throws CommandFormatException
CommandFormatExceptionpublic void parse(OperationRequestAddress initialAddress, String argsStr, boolean validation, CommandContext ctx) throws CommandFormatException
CommandFormatExceptionpublic void parseOperation(OperationRequestAddress prefix, String argsStr) throws CommandFormatException
CommandFormatExceptionpublic void parseHeaders(String argsStr) throws CommandFormatException
CommandFormatExceptionpublic void reset()
public String getOriginalLine()
getOriginalLine in interface ParsedCommandLinepublic String getSubstitutedLine()
ParsedCommandLinegetSubstitutedLine in interface ParsedCommandLinepublic List<String> getOtherProperties()
getOtherProperties in interface ParsedCommandLinepublic boolean isRequestComplete()
isRequestComplete in interface ParsedCommandLinepublic boolean endsOnPropertySeparator()
endsOnPropertySeparator in interface ParsedCommandLinepublic boolean endsOnPropertyValueSeparator()
endsOnPropertyValueSeparator in interface ParsedCommandLinepublic boolean endsOnPropertyListStart()
endsOnPropertyListStart in interface ParsedCommandLinepublic boolean endsOnPropertyListEnd()
endsOnPropertyListEnd in interface ParsedCommandLinepublic boolean endsOnHeaderListStart()
endsOnHeaderListStart in interface ParsedCommandLinepublic boolean endsOnAddressOperationNameSeparator()
endsOnAddressOperationNameSeparator in interface ParsedCommandLinepublic boolean endsOnNodeSeparator()
endsOnNodeSeparator in interface ParsedCommandLinepublic boolean endsOnNodeTypeNameSeparator()
endsOnNodeTypeNameSeparator in interface ParsedCommandLinepublic boolean endsOnSeparator()
endsOnSeparator in interface ParsedCommandLinepublic boolean hasAddress()
hasAddress in interface ParsedCommandLinepublic OperationRequestAddress getAddress()
getAddress in interface ParsedCommandLinepublic boolean hasOperationName()
hasOperationName in interface ParsedCommandLinepublic String getOperationName()
getOperationName in interface ParsedCommandLinepublic boolean hasProperties()
hasProperties in interface ParsedCommandLinepublic boolean hasProperty(String propertyName)
hasProperty in interface ParsedCommandLinepublic void validatedNodeType(int index,
String nodeType)
throws OperationFormatException
validatedNodeType in class ValidatingCallbackHandlerOperationFormatExceptionpublic void nodeTypeNameSeparator(int index)
nodeTypeNameSeparator in interface CommandLineParser.CallbackHandlerpublic void validatedNodeName(int index,
String nodeName)
throws OperationFormatException
validatedNodeName in class ValidatingCallbackHandlerOperationFormatExceptionpublic void nodeSeparator(int index)
nodeSeparator in interface CommandLineParser.CallbackHandlerpublic void addressOperationSeparator(int index)
addressOperationSeparator in interface CommandLineParser.CallbackHandlerpublic void operationName(int index,
String operationName)
throws OperationFormatException
operationName in interface CommandLineParser.CallbackHandleroperationName in class ValidatingCallbackHandlerOperationFormatExceptionpublic void validatedOperationName(int index,
String operationName)
throws OperationFormatException
validatedOperationName in class ValidatingCallbackHandlerOperationFormatExceptionpublic void propertyListStart(int index)
propertyListStart in interface CommandLineParser.CallbackHandlerpublic void propertyName(int index,
String propertyName)
throws OperationFormatException
propertyName in interface CommandLineParser.CallbackHandlerpropertyName in class ValidatingCallbackHandlerOperationFormatExceptionprotected void validatedPropertyName(int index,
String propertyName)
throws OperationFormatException
validatedPropertyName in class ValidatingCallbackHandlerOperationFormatExceptionpublic void propertyNameValueSeparator(int index)
propertyNameValueSeparator in interface CommandLineParser.CallbackHandlerpublic void property(String name, String value, int nameValueSeparatorIndex) throws OperationFormatException
property in interface CommandLineParser.CallbackHandlerproperty in class ValidatingCallbackHandlerOperationFormatExceptionprotected void validatedProperty(String name, String value, int nameValueSeparatorIndex) throws OperationFormatException
validatedProperty in class ValidatingCallbackHandlerOperationFormatExceptionpublic void propertySeparator(int index)
propertySeparator in interface CommandLineParser.CallbackHandlerpublic void propertyListEnd(int index)
propertyListEnd in interface CommandLineParser.CallbackHandlerpublic void headerListStart(int index)
headerListStart in interface CommandLineParser.CallbackHandlerpublic void headerListEnd(int index)
headerListEnd in interface CommandLineParser.CallbackHandlerpublic void headerSeparator(int index)
headerSeparator in interface CommandLineParser.CallbackHandlerpublic void headerNameValueSeparator(int index)
headerNameValueSeparator in interface CommandLineParser.CallbackHandlerpublic ParsingStateCallbackHandler headerName(int index, String headerName) throws CommandFormatException
headerName in interface CommandLineParser.CallbackHandlerCommandFormatExceptionpublic void header(String name, String value, int valueIndex) throws CommandFormatException
header in interface CommandLineParser.CallbackHandlerCommandFormatExceptionpublic void header(ParsedOperationRequestHeader header)
public boolean hasHeaders()
hasHeaders in interface ParsedCommandLinepublic boolean hasHeader(String name)
hasHeader in interface ParsedCommandLinepublic String getLastHeaderName()
getLastHeaderName in interface ParsedCommandLinepublic Collection<ParsedOperationRequestHeader> getHeaders()
getHeaders in interface ParsedCommandLinepublic ParsedOperationRequestHeader getLastHeader()
getLastHeader in interface ParsedCommandLinepublic void rootNode(int index)
rootNode in interface CommandLineParser.CallbackHandlerpublic void parentNode(int index)
parentNode in interface CommandLineParser.CallbackHandlerpublic void nodeType(int index)
nodeType in interface CommandLineParser.CallbackHandlerpublic void nodeName(int index,
String nodeName)
throws OperationFormatException
nodeName in interface CommandLineParser.CallbackHandlernodeName in class ValidatingCallbackHandlerOperationFormatExceptionpublic void nodeType(int index,
String nodeType)
throws OperationFormatException
nodeType in interface CommandLineParser.CallbackHandlernodeType in class ValidatingCallbackHandlerOperationFormatExceptionpublic void nodeTypeOrName(int index,
String typeOrName)
throws OperationFormatException
nodeTypeOrName in interface CommandLineParser.CallbackHandlerOperationFormatExceptionpublic Set<String> getPropertyNames()
getPropertyNames in interface ParsedCommandLinepublic String getPropertyValue(String name)
getPropertyValue in interface ParsedCommandLinepublic int getLastSeparatorIndex()
getLastSeparatorIndex in interface ParsedCommandLinepublic int getLastChunkIndex()
getLastChunkIndex in interface ParsedCommandLinepublic void outputTarget(int index,
String outputTarget)
outputTarget in interface CommandLineParser.CallbackHandlerpublic String getOutputTarget()
getOutputTarget in interface ParsedCommandLinepublic String getLastParsedPropertyName()
getLastParsedPropertyName in interface ParsedCommandLinepublic String getLastParsedPropertyValue()
getLastParsedPropertyValue in interface ParsedCommandLinepublic org.jboss.dmr.ModelNode toOperationRequest(CommandContext ctx) throws CommandFormatException
CommandFormatExceptionpublic void setFormat(CommandLineFormat format)
setFormat in interface CommandLineParser.CallbackHandlerpublic CommandLineFormat getFormat()
getFormat in interface ParsedCommandLinepublic boolean endsOnHeaderSeparator()
endsOnHeaderSeparator in interface ParsedCommandLineCopyright © 2014 JBoss by Red Hat. All rights reserved.