org.polliwog.webapp
Class WebAppHelper
java.lang.Object
   org.polliwog.webapp.WebAppHelper
org.polliwog.webapp.WebAppHelper
- public class WebAppHelper 
- extends java.lang.Object
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
WebAppHelper
public WebAppHelper()
initSystem
public static void initSystem(java.io.File initFile)
                       throws java.io.IOException,
                              WeblogException,
                              org.jdom.JDOMException
- 
- Throws:
- java.io.IOException
- WeblogException
- org.jdom.JDOMException
 
getWebAppProperty
public static java.lang.String getWebAppProperty(java.lang.String name)
- 
 
getWebAppPropertyAsFile
public static java.io.File getWebAppPropertyAsFile(java.lang.String name)
- 
 
buildFormErrors
public static java.lang.String buildFormErrors(java.util.List errs)
- 
 
isSiteConfigured
public static boolean isSiteConfigured(java.lang.String name)
- 
 
getManagedSite
public static ManagedSite getManagedSite(HttpServletRequest request)
                                  throws WeblogException
- 
- Throws:
- WeblogException
 
getSitesManaged
public static java.util.List getSitesManaged()
                                      throws WeblogException
- 
- Throws:
- WeblogException
 
getDefaultSiteProperties
public static com.gentlyweb.properties.Properties getDefaultSiteProperties()
- 
 
getTemplate
public static java.lang.String getTemplate(java.lang.String name)
- 
 
outputPage
public static void outputPage(HttpServletRequest request,
                              HttpServletResponse response,
                              java.lang.String page)
                       throws java.io.IOException
- Output the page.  This is the place where any global replacements
 or templates pre-pended/appended are made.
 
- 
- Parameters:
- request- The HttpServletRequest to use to get various parameters
                associated with output.
- response- The HttpServletResponse object to use to get the PrintWriter
                 to send the page out.
- page- The page to output.
- Throws:
- java.io.IOException- If it can't writer the page out.
 
scheduleSite
public static void scheduleSite(ManagedSite ms)
                         throws WeblogException
- 
- Throws:
- WeblogException
 
unscheduleSite
public static void unscheduleSite(ManagedSite ms)
- 
 
isRunningForSite
public static boolean isRunningForSite(ManagedSite ms)
- 
 
getCurrentStatus
public static java.lang.String getCurrentStatus(ManagedSite ms)
- 
 
setNextExecution
public static void setNextExecution(ManagedSite ms,
                                    java.util.Date d)
- 
 
setLastExecution
public static void setLastExecution(ManagedSite ms,
                                    java.util.Date d)
- 
 
getNextExecution
public static java.util.Date getNextExecution(ManagedSite ms)
- 
 
isScheduled
public static boolean isScheduled(ManagedSite ms)
- 
 
getLastExecution
public static java.util.Date getLastExecution(ManagedSite ms)
- 
 
getExecutionEvents
public static java.util.List getExecutionEvents(ManagedSite ms)
- 
 
 Copyright © 2007 Gary Bentley. All Rights Reserved.
  Copyright © 2007 Gary Bentley. All Rights Reserved.