DLESE Tools
v1.6.0

org.dlese.dpc.services.dds.action
Class DDSRSS20Action

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.dlese.dpc.services.dds.action.DDSRSS20Action

public final class DDSRSS20Action
extends org.apache.struts.action.Action

An Action that handles RSS 2.0 requests.

See Also:
DDSRSS20Form

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
DDSRSS20Action()
           
 
Method Summary
protected  org.apache.struts.action.ActionForward doRssSearch(HttpServletRequest request, HttpServletResponse response, RepositoryManager rm, DDSRSS20Form rssForm, org.apache.struts.action.ActionMapping mapping)
          Handles a request to perform a search over item-level records, returning a response in RSS 2.0 format.
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
          Processes the DDS web service request by forwarding to the appropriate corresponding JSP page for rendering.
protected static String getDateStamp()
          Return a string for the current time and date, sutiable for display in log files and output to standout:
protected  void prtln(String s)
          Output a line of text to standard out, with datestamp, if debug is set to true.
protected  void prtlnErr(String s)
          Output a line of text to error out, with datestamp.
static void setDebug(boolean db)
          Sets the debug attribute of the object
 
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
 

Constructor Detail

DDSRSS20Action

public DDSRSS20Action()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      HttpServletRequest request,
                                                      HttpServletResponse response)
                                               throws Exception
Processes the DDS web service request by forwarding to the appropriate corresponding JSP page for rendering.

Overrides:
execute in class org.apache.struts.action.Action
Parameters:
mapping - The ActionMapping used to select this instance
request - The HTTP request we are processing
response - The HTTP response we are creating
form - The ActionForm for the given page
Returns:
The ActionForward instance describing where and how control should be forwarded
Throws:
Exception - If error.

doRssSearch

protected org.apache.struts.action.ActionForward doRssSearch(HttpServletRequest request,
                                                             HttpServletResponse response,
                                                             RepositoryManager rm,
                                                             DDSRSS20Form rssForm,
                                                             org.apache.struts.action.ActionMapping mapping)
                                                      throws Exception
Handles a request to perform a search over item-level records, returning a response in RSS 2.0 format. This request exposes the same search options that users experience when performing a search for educational resources in the DDS, including what's new, etc..

Parameters:
request - The HTTP request
response - The HTTP response
rm - The RepositoryManager used
mapping - ActionMapping used
rssForm - DESCRIPTION
Returns:
An ActionForward to the JSP page that will handle the response
Throws:
Exception - If error.

getDateStamp

protected static final String getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout:

Returns:
The dateStamp value

prtlnErr

protected final void prtlnErr(String s)
Output a line of text to error out, with datestamp.

Parameters:
s - The text that will be output to error out.

prtln

protected final void prtln(String s)
Output a line of text to standard out, with datestamp, if debug is set to true.

Parameters:
s - The String that will be output.

setDebug

public static void setDebug(boolean db)
Sets the debug attribute of the object

Parameters:
db - The new debug value

DLESE Tools
v1.6.0