|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.novadeck.jxla.config.Config
Configure all needed information from the config file
| Field Summary | |
static DNSCache |
dnsDumpFile
cache containing all reverse dns done |
static boolean |
dnsEnable
define if reverse dns is enabled |
static java.lang.String |
indexFileName
webserver default index page ( usually index.html ) |
static java.lang.String[] |
logsFiles
path list of log files to parse |
static int |
maxAgents
max User Agent to output in report |
static int |
maxKeywords
maximum keywords to output in report |
static int |
maxNotFound
max requests with a 404 response to output in report |
static int |
maxRefers
maximum referers to output |
static int |
maxRemoteHosts
maximum remote hosts ( surfer computer name/ip ) to output in report |
static int |
maxUris
max uris to output in report |
static java.lang.String[] |
pagesEntensions
list of extension files to consider as 'page' |
static AbstractSiteConfig |
siteConfig
general configuration class |
static java.lang.String |
summaryPageName
name of the file of summary report ( index.xml, summary.xml ...) |
| Constructor Summary | |
Config()
|
|
| Method Summary | |
static void |
addLogLineFormat(java.lang.String s)
add a valid line format |
static void |
addPageExtension(java.lang.String s)
add a extension to the list |
static void |
addSearchEngine(java.lang.String name,
java.lang.String domain,
java.lang.String param)
add a new SearchEngine for parsing referers |
static void |
displayConfig()
display all configuration information and exit |
static void |
dumpDnsCache()
write dns cache to file |
static void |
setConfigClass(java.lang.String s)
specify the implementation class config |
static void |
setDnsInfo(boolean enable,
java.lang.String filename)
configure dns |
static void |
setLogFiles(java.lang.String directory,
java.lang.String regexp)
initialize list of log files |
static void |
setMaxAgents(int _max)
set the maximum of User agents to output |
static void |
setMaxKeywords(int _max)
set the maximum of keywords to output |
static void |
setMaxNotFound(int _max)
set the maximum of not found requests to output |
static void |
setMaxRefers(int _max)
set the maximum of referers to output |
static void |
setMaxRemotehosts(int _max)
set the maximum of remote hosts to output |
static void |
setMaxUris(int _max)
set the maximum of uris to output |
static void |
setSummaryPageName(java.lang.String s)
set the name of the summary report file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static AbstractSiteConfig siteConfig
public static java.lang.String[] pagesEntensions
public static boolean dnsEnable
public static DNSCache dnsDumpFile
public static java.lang.String[] logsFiles
public static int maxRefers
public static int maxKeywords
public static int maxAgents
public static int maxRemoteHosts
public static int maxUris
public static int maxNotFound
public static java.lang.String summaryPageName
public static java.lang.String indexFileName
| Constructor Detail |
public Config()
| Method Detail |
public static void setDnsInfo(boolean enable,
java.lang.String filename)
enable - specify if reverse dns is enablefilename - path file where to store reverse dns informationpublic static void dumpDnsCache()
public static void setLogFiles(java.lang.String directory,
java.lang.String regexp)
directory - directory path where to locate log filesregexp - regexp that log file names must match to be parsedpublic static void addPageExtension(java.lang.String s)
s - file extension of page filespublic static void setMaxRefers(int _max)
_max - maximum valuepublic static void setMaxKeywords(int _max)
_max - maximum valuepublic static void setMaxAgents(int _max)
_max - maximum valuepublic static void setMaxRemotehosts(int _max)
_max - maxmimu valuepublic static void setMaxUris(int _max)
_max - maxmimum valuepublic static void setMaxNotFound(int _max)
_max - maximum valuepublic static void setConfigClass(java.lang.String s)
s - full class namepublic static void addLogLineFormat(java.lang.String s)
s - valid expression for parsing log linesRegexpDatapublic static void setSummaryPageName(java.lang.String s)
s - file name
public static void addSearchEngine(java.lang.String name,
java.lang.String domain,
java.lang.String param)
name - familiar name for the searchengine ( use for output only )domain - site of the search engine ( google.com, yahoo.com, voila.fr, ...param - name of the parameter containing the search keywordspublic static void displayConfig()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||