org.polliwog.data
Class VisitorEnvironment
java.lang.Object
org.polliwog.data.VisitorEnvironment
public class VisitorEnvironment
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VisitorEnvironment
public VisitorEnvironment(com.gentlyweb.properties.Properties props)
throws java.io.IOException,
WeblogException,
org.jdom.JDOMException
- Throws:
java.io.IOException
WeblogException
org.jdom.JDOMException
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.