Class GoogleSitemapsProcessAction
java.lang.Object
org.apache.struts.action.Action
com.softslate.commerce.customer.core.BaseAction
com.softslate.commerce.administrator.importexport.GoogleSitemapsProcessAction
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
FieldsFields inherited from class org.apache.struts.action.Action
servlet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doCategories
(Collection categories, Document d, Element root, GoogleSitemapsForm baseForm, int numCategories) doChangefreqValue
(Object o, GoogleSitemapsForm baseForm) doLastmodValue
(Object o, GoogleSitemapsForm baseForm) doPriorityValue
(Object o, GoogleSitemapsForm baseForm) int
doProducts
(Collection products, Document d, Element root, GoogleSitemapsForm baseForm) 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
(String dateString) Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
GoogleSitemapsProcessAction
public GoogleSitemapsProcessAction()
-
-
Method Details
-
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 Exception - Overrides:
execute
in classorg.apache.struts.action.Action
- Throws:
Exception
-
doProducts
-
doCategories
public int doCategories(Collection categories, Document d, Element root, GoogleSitemapsForm baseForm, int numCategories) -
escapeXML
-
isValidDate
-
doLastmodValue
-
doChangefreqValue
-
doPriorityValue
-