org.polliwog.data
Class VisitorEnvironment

java.lang.Object
  extended by org.polliwog.data.VisitorEnvironment

public class VisitorEnvironment
extends java.lang.Object


Constructor Summary
VisitorEnvironment(com.gentlyweb.properties.Properties props)
           
 
Method Summary
 void addPageToMenu(java.lang.Object o, Page p)
           
 boolean doLocationLookups()
           
 java.lang.String format(java.lang.Object o, java.lang.String ft, java.util.Map params)
           
 java.lang.String formatDate(java.util.Date t)
           
 java.lang.String formatDateTime(java.util.Date t)
           
 java.lang.String formatNumber(int v)
           
 java.lang.String formatNumber(long v)
           
 java.lang.String formatTime(java.util.Date t)
           
 java.lang.String formatTimeDuration(com.gentlyweb.utils.TimeDuration td)
           
 void generateMenu(VisitorData vd)
           
 java.util.Calendar getCalendar()
           
 java.lang.String getCountryForHost(java.lang.String ipAddr)
           
 java.util.Map getCurrentSaveValues()
           
 java.lang.String getDeployURL()
           
 java.lang.String getDeployURL(VisitorData vd)
           
 java.util.Map getHitCollectors(java.lang.String type)
           
 java.lang.String getIconFromMenu(java.lang.String id)
           
 com.maxmind.geoip.Location getLocationForHost(java.lang.String ipAddr)
           
 java.util.Date getNewTime(java.util.Date d)
           
 java.lang.String getOutputDirectory()
           
 java.lang.String getOutputURL()
           
 Page getPage(java.lang.String p)
           
 PageSet getPageSet(java.lang.String id)
           
 java.util.Map getPageSets()
           
 java.util.Map getProcessedFiles()
           
 java.lang.String getProperty(java.lang.String id)
           
 boolean getPropertyAsBoolean(java.lang.String id)
           
 java.io.File getPropertyAsFile(java.lang.String id)
           
 org.josql.Query getQuery(java.lang.String id)
           
 java.lang.Object getSaveValue(java.lang.Object id)
           
 SearchEngineSearch getSearch(Hit h)
           
 java.lang.String getSearchEngineName(Visit v)
           
 int getStartLine(LogFileInfo lfi)
           
 java.lang.String getStatusCodeName(int c)
           
 java.lang.String getTemplate(java.lang.String id)
           
 java.lang.String getTitleFromMenu(java.lang.String id)
           
 java.lang.String getURL(java.lang.String url)
           
 java.util.Map getVisitCollectors(java.lang.String type)
           
 java.lang.String initOutputDir(VisitorData vd)
           
 boolean isResolveHostnames()
           
 boolean isSearchEngineHit(Hit h)
           
 boolean isSearchEngineVisit(Visit v)
           
 boolean isWantVisitPages()
           
 void saveProcessedFile(ProcessedFile p)
           
 void setCurrentSaveValues(java.util.Map svs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisitorEnvironment

public VisitorEnvironment(com.gentlyweb.properties.Properties props)
                   throws java.io.IOException,
                          WeblogException,
                          org.jdom.JDOMException
Throws:
java.io.IOException
WeblogException
org.jdom.JDOMException
Method Detail

getHitCollectors

public java.util.Map getHitCollectors(java.lang.String type)

getVisitCollectors

public java.util.Map getVisitCollectors(java.lang.String type)

getPageSets

public java.util.Map getPageSets()

getPageSet

public PageSet getPageSet(java.lang.String id)

format

public java.lang.String format(java.lang.Object o,
                               java.lang.String ft,
                               java.util.Map params)
                        throws WeblogException
Throws:
WeblogException

getQuery

public org.josql.Query getQuery(java.lang.String id)
                         throws WeblogException
Throws:
WeblogException

isSearchEngineHit

public boolean isSearchEngineHit(Hit h)

isSearchEngineVisit

public boolean isSearchEngineVisit(Visit v)

formatNumber

public java.lang.String formatNumber(int v)
                              throws WeblogException
Throws:
WeblogException

formatNumber

public java.lang.String formatNumber(long v)
                              throws WeblogException
Throws:
WeblogException

formatTime

public java.lang.String formatTime(java.util.Date t)
                            throws WeblogException
Throws:
WeblogException

formatDateTime

public java.lang.String formatDateTime(java.util.Date t)
                                throws WeblogException
Throws:
WeblogException

formatDate

public java.lang.String formatDate(java.util.Date t)
                            throws WeblogException
Throws:
WeblogException

formatTimeDuration

public java.lang.String formatTimeDuration(com.gentlyweb.utils.TimeDuration td)
                                    throws WeblogException
Throws:
WeblogException

getSearchEngineName

public java.lang.String getSearchEngineName(Visit v)

getTemplate

public java.lang.String getTemplate(java.lang.String id)

getStatusCodeName

public java.lang.String getStatusCodeName(int c)

getNewTime

public java.util.Date getNewTime(java.util.Date d)

getCalendar

public java.util.Calendar getCalendar()

getSearch

public SearchEngineSearch getSearch(Hit h)

getPropertyAsFile

public java.io.File getPropertyAsFile(java.lang.String id)

getPropertyAsBoolean

public boolean getPropertyAsBoolean(java.lang.String id)

getProperty

public java.lang.String getProperty(java.lang.String id)

isResolveHostnames

public boolean isResolveHostnames()

getCurrentSaveValues

public java.util.Map getCurrentSaveValues()

setCurrentSaveValues

public void setCurrentSaveValues(java.util.Map svs)

getSaveValue

public java.lang.Object getSaveValue(java.lang.Object id)

getCountryForHost

public java.lang.String getCountryForHost(java.lang.String ipAddr)

getLocationForHost

public com.maxmind.geoip.Location getLocationForHost(java.lang.String ipAddr)

doLocationLookups

public boolean doLocationLookups()

getOutputDirectory

public java.lang.String getOutputDirectory()

initOutputDir

public java.lang.String initOutputDir(VisitorData vd)
                               throws WeblogException
Throws:
WeblogException

getPage

public Page getPage(java.lang.String p)

getDeployURL

public java.lang.String getDeployURL()

getDeployURL

public java.lang.String getDeployURL(VisitorData vd)
                              throws WeblogException
Throws:
WeblogException

addPageToMenu

public void addPageToMenu(java.lang.Object o,
                          Page p)
                   throws WeblogException
Throws:
WeblogException

getTitleFromMenu

public java.lang.String getTitleFromMenu(java.lang.String id)

getIconFromMenu

public java.lang.String getIconFromMenu(java.lang.String id)

generateMenu

public void generateMenu(VisitorData vd)
                  throws WeblogException
Throws:
WeblogException

getOutputURL

public java.lang.String getOutputURL()

getURL

public java.lang.String getURL(java.lang.String url)

isWantVisitPages

public boolean isWantVisitPages()

getProcessedFiles

public java.util.Map getProcessedFiles()
                                throws WeblogException
Throws:
WeblogException

getStartLine

public int getStartLine(LogFileInfo lfi)
                 throws WeblogException
Throws:
WeblogException

saveProcessedFile

public void saveProcessedFile(ProcessedFile p)
                       throws WeblogException
Throws:
WeblogException


  Copyright © 2007 Gary Bentley. All Rights Reserved.