org.ideahamster.metis.util
Class MetisOpt
java.lang.Object
|
+--org.ideahamster.metis.util.MetisOpt
- public final class MetisOpt
- extends java.lang.Object
This class handles the options for Metis.
- Version:
1.3
- Author:
- Sacha Faust
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetisOpt
public MetisOpt()
setRequestMethod
public void setRequestMethod(int requestMethod)
- Parameters:
requestMethod - The request method type. See faust.sacha.web.uti.WebGlobal for a listing
of available request method types.
setDebug
public void setDebug(boolean debug)
- Parameters:
debug - True will enable debugging.
False will disable debugging.
setProxyHost
public void setProxyHost(java.lang.String proxyHost)
- Parameters:
proxyHost - The host used for proxying.
setProxyPort
public void setProxyPort(int proxyPort)
- Parameters:
proxyPort - The port used by the proxy server.
setReportType
public void setReportType(int type)
- Parameters:
type - Report type to generate. See org.ideahamster.util.MetisGlobal for a listing of valid
report types.
getReportType
public static int getReportType()
- Returns:
- The report type used.
setRequestUserName
public void setRequestUserName(java.lang.String username)
- Parameters:
username - The user name used to authenticate to the server.
setRequestPassword
public void setRequestPassword(java.lang.String password)
- Parameters:
password - The password used to authenticate to the server.
setrootURL
public void setrootURL(java.lang.String url)
- Parameters:
url - The url used to start the spider.
getrootURL
public static java.lang.String getrootURL()
- Returns:
- The url used to start the spider.
validateOptions
public boolean validateOptions()
- This method will validate if the required and optional options are
all initialized correctly.
- Returns:
- True : all options were set correctly.
False : one of the options was not initiated correctly.
usage
public static void usage()
- Prints the usage for Metis.
DEBUG_DUMP_OPTIONS
public void DEBUG_DUMP_OPTIONS()