org.novadeck.jxla.config
Class SimpleSiteConfig

java.lang.Object
  |
  +--org.novadeck.jxla.config.SimpleSiteConfig
All Implemented Interfaces:
AbstractSiteConfig

public class SimpleSiteConfig
extends java.lang.Object
implements AbstractSiteConfig


Constructor Summary
SimpleSiteConfig()
           
 
Method Summary
 java.lang.String getMainDirForGeneralStat()
          Retrieve the directory where to store a summary of requests to the differents websites in the platform.
 java.lang.String getRealHostName(java.lang.String hostname)
          Retrieve the internal name to use for log analyze, many websites use different names for the same ressources like www.novadeck.org and novadeck.org, so we need only one name.
 java.lang.String getRealUserInfo(java.lang.String user)
          Convert any user info from log files to a 'readable' form for the output.
 java.lang.String getStatsDirectory(java.lang.String hostname)
          Retrieve the directory where to store the output files, depanding of the website.
 boolean ignoreLine(RegexpData re)
          Method to check if the log line must be ignore, may be a comment ( beginnnig with # ), or an URL we don't want to output it ( like a url of developping next generation of website, or an admin part of the site ).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSiteConfig

public SimpleSiteConfig()
Method Detail

getStatsDirectory

public java.lang.String getStatsDirectory(java.lang.String hostname)
Description copied from interface: AbstractSiteConfig
Retrieve the directory where to store the output files, depanding of the website.
Specified by:
getStatsDirectory in interface AbstractSiteConfig
Following copied from interface: org.novadeck.jxla.config.AbstractSiteConfig
Parameters:
hostname - internal name of the website
Returns:
directoty path where to write xml reports

getRealHostName

public java.lang.String getRealHostName(java.lang.String hostname)
Description copied from interface: AbstractSiteConfig
Retrieve the internal name to use for log analyze, many websites use different names for the same ressources like www.novadeck.org and novadeck.org, so we need only one name.
Specified by:
getRealHostName in interface AbstractSiteConfig
Following copied from interface: org.novadeck.jxla.config.AbstractSiteConfig
Parameters:
hostname - hostname found in the request in the log file
Returns:
internal name of the specified hostname

getRealUserInfo

public java.lang.String getRealUserInfo(java.lang.String user)
Description copied from interface: AbstractSiteConfig
Convert any user info from log files to a 'readable' form for the output. In log file we can store his login but want to output his fullname.
Specified by:
getRealUserInfo in interface AbstractSiteConfig
Following copied from interface: org.novadeck.jxla.config.AbstractSiteConfig
Parameters:
user - user speicific information found in the log files, like a permanent cookie, a user login or anything else
Returns:
report verbose user info

ignoreLine

public boolean ignoreLine(RegexpData re)
Description copied from interface: AbstractSiteConfig
Method to check if the log line must be ignore, may be a comment ( beginnnig with # ), or an URL we don't want to output it ( like a url of developping next generation of website, or an admin part of the site ). Can also work with the user info.
Specified by:
ignoreLine in interface AbstractSiteConfig
Following copied from interface: org.novadeck.jxla.config.AbstractSiteConfig
Parameters:
re - current line parsed data
Returns:
true if line is a comment

getMainDirForGeneralStat

public java.lang.String getMainDirForGeneralStat()
Description copied from interface: AbstractSiteConfig
Retrieve the directory where to store a summary of requests to the differents websites in the platform.
Specified by:
getMainDirForGeneralStat in interface AbstractSiteConfig
Following copied from interface: org.novadeck.jxla.config.AbstractSiteConfig
Returns:
directory path to write the all websites simple report