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(java.lang.String site)
          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

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
Returns:
String : the internal name for computing logs

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

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

getMainDirForGeneralStat

public java.lang.String getMainDirForGeneralStat(java.lang.String site)
Retrieve the directory where to store a summary of requests to the differents websites in the platform.

Specified by:
getMainDirForGeneralStat in interface AbstractSiteConfig