public class CommandLineParser
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
ParameterMap |
extractParameters() |
|
java.lang.String[] |
getArgs() |
Gets the command arguments.
|
java.lang.String |
getCommandName() |
Gets the translet name.
|
java.util.List<CommandLineRedirection> |
getRedirectionList() |
|
java.io.Writer[] |
getRedirectionWriters(Console console) |
|
MethodType |
getRequestMethod() |
Gets the request method.
|
boolean |
hasParameters() |
|
boolean |
isParseArgs() |
|
static CommandLineParser |
parse(java.lang.String commandLine) |
Returns the command line parser.
|
static CommandLineParser |
parse(java.lang.String commandLine,
boolean parseArgs) |
|
static java.lang.String |
serialize(java.util.List<CommandLineRedirection> redirectionList) |
|
static java.lang.String[] |
splitCommandLine(java.lang.String commandLine) |
public boolean isParseArgs()
public MethodType getRequestMethod()
public java.lang.String getCommandName()
public java.lang.String[] getArgs()
public boolean hasParameters()
public ParameterMap extractParameters()
public java.util.List<CommandLineRedirection> getRedirectionList()
public java.io.Writer[] getRedirectionWriters(Console console) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
java.io.FileNotFoundExceptionjava.io.UnsupportedEncodingExceptionpublic static CommandLineParser parse(java.lang.String commandLine)
commandLine - the command linepublic static CommandLineParser parse(java.lang.String commandLine, boolean parseArgs)
public static java.lang.String serialize(java.util.List<CommandLineRedirection> redirectionList)
public static java.lang.String[] splitCommandLine(java.lang.String commandLine)
Copyright © 2008–2018 The Aspectran Project. All rights reserved.