CADI.Proxy
Class ProxyParser
java.lang.Object
CADI.Common.Util.ArgumentsParser
CADI.Proxy.ProxyParser
public class ProxyParser
- extends ArgumentsParser
- Version:
- 1.0 23/07/2009
- Author:
- Group on Interactive Coding of Images (GICI)
|
Constructor Summary |
ProxyParser(java.lang.String[] arguments)
Receives program arguments and parses it, setting to arguments variables. |
| Methods inherited from class CADI.Common.Util.ArgumentsParser |
parse, parseBoolean, parseBooleanArray, parseFloatArray, parseFloatArray, parseFloatPositive, parseIntegerArray, parseIntegerArray, parseIntegerPositive, parseIntegerRangesArray, parseLongArray, parseLongArray, parseLongPositive, parseString, showArgsInfo, showArgsInfoLatexTable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serverArguments
private static final java.lang.String[][] serverArguments
ports
private int[] ports
numThreads
private int numThreads
proxyType
private int proxyType
logFile
private java.lang.String logFile
XMLLogFormat
private boolean XMLLogFormat
logEnabled
private boolean logEnabled
logLevel
private int logLevel
cacheDirectory
private java.lang.String cacheDirectory
ProxyParser
public ProxyParser(java.lang.String[] arguments)
throws ParameterException,
ErrorException
- Receives program arguments and parses it, setting to arguments variables.
- Parameters:
arguments - the array of strings passed at the command line
- Throws:
ParameterException - when an invalid parsing is detected
ErrorException - when some problem with method invocation occurs
parseArgument
public void parseArgument(int argFound,
java.lang.String[] options)
throws ParameterException
- Parse an argument using parse functions from super class and put its
value/s to the desired variable. This function is called from parse
function of the super class.
- Parameters:
argFound - number of parameter (the index of the array coderArguments)options - the command line options of the argument
- Throws:
ParameterException - when some error about parameters passed (type, number of params, etc.) occurs
getPorts
public int[] getPorts()
getNumThreads
public int getNumThreads()
getProxyType
public int getProxyType()
getLogFile
public java.lang.String getLogFile()
isXMLLogFormat
public boolean isXMLLogFormat()
isLogEnabled
public boolean isLogEnabled()
getLogLevel
public int getLogLevel()
getCacheDirectory
public java.lang.String getCacheDirectory()
printWarranty
private void printWarranty()
- Prints out the warranty.
printLiability
private void printLiability()
- Prints out the liability.
printCopyright
private void printCopyright()
- Prints out the copyright.
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)