javatools.cron
Class CrontabEntrySaveServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--javatools.cron.CrontabEntrySaveServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class CrontabEntrySaveServlet
extends javax.servlet.http.HttpServlet

Called by the CrontabEntryApplet in order to save entries. Suggest inheriting from this class to save in your preferred manner. e.g. DBMS

See Also:
Serialized Form

Constructor Summary
CrontabEntrySaveServlet()
           
 
Method Summary
 java.lang.String save(java.lang.String key, boolean isEnabled, CrontabEntry crontabEntry)
          Suggest you inherit and redefine this function in order to save an entry.
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, 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
 

Constructor Detail

CrontabEntrySaveServlet

public CrontabEntrySaveServlet()
Method Detail

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException,
                    java.io.IOException
Overrides:
service in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException

save

public java.lang.String save(java.lang.String key,
                             boolean isEnabled,
                             CrontabEntry crontabEntry)
Suggest you inherit and redefine this function in order to save an entry. The key could be say the line number in the Crontab, or perhaps some sort of key in your DBMS.

Parameters:
key - The primary key of this entry
isEnabled - Whether the user has disabled this CrontabEntry.
crontabEntry - The CrontabEntry to save.