com.softslate.commerce.administrator.importexport
Class GoogleSitemapsProcessAction
java.lang.Object
org.apache.struts.action.Action
com.softslate.commerce.customer.core.BaseAction
com.softslate.commerce.administrator.importexport.GoogleSitemapsProcessAction
public class GoogleSitemapsProcessAction
- extends BaseAction
Struts action class that corresponds to the processing of the Google Sitemaps
export. Used for requests to "/administrator/GoogleSitemapsProcess.do".
The execute
method of this class all the active products and
categories and creates the XML DOM structure in the Sitemap Protocol format.
Next, based on how the user choose to have the file generated, it either
sends the XML contents directly through the response, or write the XML to a
specified file on the server.
- Author:
- David Tobey
Field Summary |
(package private) static org.apache.commons.logging.Log |
log
|
Fields inherited from class org.apache.struts.action.Action |
defaultLocale, servlet |
Method Summary |
int |
doCategories(java.util.Collection categories,
org.w3c.dom.Document d,
org.w3c.dom.Element root,
GoogleSitemapsForm baseForm,
int numCategories)
|
java.lang.String |
doChangefreqValue(java.lang.Object o,
GoogleSitemapsForm baseForm)
|
java.lang.String |
doLastmodValue(java.lang.Object o,
GoogleSitemapsForm baseForm)
|
java.lang.String |
doPriorityValue(java.lang.Object o,
GoogleSitemapsForm baseForm)
|
int |
doProducts(java.util.Collection products,
org.w3c.dom.Document d,
org.w3c.dom.Element root,
GoogleSitemapsForm baseForm)
|
java.lang.String |
escapeXML(java.lang.String text)
|
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
boolean |
isValidDate(java.lang.String dateString)
|
Methods inherited from class org.apache.struts.action.Action |
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
static org.apache.commons.logging.Log log
GoogleSitemapsProcessAction
public GoogleSitemapsProcessAction()
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
- Overrides:
execute
in class org.apache.struts.action.Action
- Throws:
java.lang.Exception
doProducts
public int doProducts(java.util.Collection products,
org.w3c.dom.Document d,
org.w3c.dom.Element root,
GoogleSitemapsForm baseForm)
doCategories
public int doCategories(java.util.Collection categories,
org.w3c.dom.Document d,
org.w3c.dom.Element root,
GoogleSitemapsForm baseForm,
int numCategories)
escapeXML
public java.lang.String escapeXML(java.lang.String text)
isValidDate
public boolean isValidDate(java.lang.String dateString)
doLastmodValue
public java.lang.String doLastmodValue(java.lang.Object o,
GoogleSitemapsForm baseForm)
doChangefreqValue
public java.lang.String doChangefreqValue(java.lang.Object o,
GoogleSitemapsForm baseForm)
doPriorityValue
public java.lang.String doPriorityValue(java.lang.Object o,
GoogleSitemapsForm baseForm)
Copyright ? SoftSlate, LLC 2003?2005