org.novadeck.jxla.config
Interface AbstractSiteConfig

All Known Implementing Classes:
SimpleSiteConfig

public interface AbstractSiteConfig

This class defines an interface to get information from your WebSites configuration.


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 ).
 

Method Detail

getRealHostName

public 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.

Returns:
String : the internal name for computing logs

getRealUserInfo

public java.lang.String getRealUserInfo(java.lang.String user)
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.


ignoreLine

public 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 ). Can also work with the user info.


getStatsDirectory

public java.lang.String getStatsDirectory(java.lang.String hostname)
Retrieve the directory where to store the output files, depanding of the website.


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.