Class CommandLineParser


  • public class CommandLineParser
    extends java.lang.Object
    The Command Line Parser.
    • Method Detail

      • isParseArgs

        public boolean isParseArgs()
      • getRequestMethod

        public MethodType getRequestMethod()
        Gets the request method.
        Returns:
        the request method
      • getCommandName

        public java.lang.String getCommandName()
        Gets the translet name.
        Returns:
        the translet name
      • getArgs

        public java.lang.String[] getArgs()
        Gets the command arguments.
        Returns:
        the command arguments
      • hasParameters

        public boolean hasParameters()
      • extractParameters

        public ParameterMap extractParameters()
      • getRedirectionWriters

        public java.io.Writer[] getRedirectionWriters​(Console console)
                                               throws java.io.FileNotFoundException,
                                                      java.io.UnsupportedEncodingException
        Throws:
        java.io.FileNotFoundException
        java.io.UnsupportedEncodingException
      • parse

        public static CommandLineParser parse​(java.lang.String commandLine)
        Returns the command line parser.
        Parameters:
        commandLine - the command line
        Returns:
        the command line parser
      • parse

        public static CommandLineParser parse​(java.lang.String commandLine,
                                              boolean parseArgs)
      • serialize

        public static java.lang.String serialize​(java.util.List<CommandLineRedirection> redirectionList)
      • splitCommandLine

        public static java.lang.String[] splitCommandLine​(java.lang.String commandLine)