org.jcrontab.web
Class CrontabServletXML

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.jcrontab.web.CrontabServletXML
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class CrontabServletXML
extends javax.servlet.http.HttpServlet

This Servlet writes in xml format all the CrontabEntryBean availables. This represents the contoller and the actions in a MVC pattern Usually this servlet is used tiwh a xsl file to generate the final HTML

Version:
$Revision: 1.27 $
Author:
$Author: iolalla $
See Also:
Serialized Form

Field Summary
static java.lang.String xsl
          This variable is the name of the xsl file
 
Constructor Summary
CrontabServletXML()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Refer to Servlet Javadoc
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Refer to Servlet Javadoc
static java.lang.String printFooter()
          This Method writes the end of the xml
static java.lang.String processErrors(javax.servlet.http.HttpServletRequest request)
          This Method writes the Errors to the xml
 void remove(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method processes the POST information, and saves the info comming from the web
 void show(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method transforms the xml/xsl and prints the whole thing in order to get hte HTML page.
 void store(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method processes the POST information, and saves the info comming from the web-client
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xsl

public static final java.lang.String xsl
This variable is the name of the xsl file

See Also:
Constant Field Values
Constructor Detail

CrontabServletXML

public CrontabServletXML()
Method Detail

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
Refer to Servlet Javadoc

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - This is the servlet request. refer to the Servlet JavaDoc
response - This is the servlet response refer to the Servlet JavaDoc

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
Refer to Servlet Javadoc

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - This is the servlet request. refer to the Servlet JavaDoc
response - This is the servlet response refer to the Servlet JavaDoc

remove

public void remove(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
This method processes the POST information, and saves the info comming from the web

Parameters:
request - This is the servlet request. refer to the Servlet JavaDoc
response - This is the servlet response refer to the Servlet JavaDoc

store

public void store(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
This method processes the POST information, and saves the info comming from the web-client

Parameters:
request - This is the servlet request. refer to the Servlet JavaDoc
response - This is the servlet response refer to the Servlet JavaDoc

show

public void show(javax.servlet.http.HttpServletRequest request,
                 javax.servlet.http.HttpServletResponse response)
This method transforms the xml/xsl and prints the whole thing in order to get hte HTML page. Should be called the last.

Parameters:
request - This is the servlet request. refer to the Servlet JavaDoc
response - This is the servlet response refer to the Servlet JavaDoc

printFooter

public static java.lang.String printFooter()
This Method writes the end of the xml

Returns:
String the end of the xml file

processErrors

public static java.lang.String processErrors(javax.servlet.http.HttpServletRequest request)
This Method writes the Errors to the xml

Returns:
String the the errors to the xml