net.sf.imca.web
Class DataAdminServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.sf.imca.web.DataAdminServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DataAdminServlet
extends javax.servlet.http.HttpServlet

This is an old school style Servlet that allows simple access to the data for administration. It dynamically generates a form for entity classes.

Author:
dougculnane
See Also:
Serialized Form

Constructor Summary
DataAdminServlet()
           
 
Method Summary
 void doEntitySwitcherForm(java.io.PrintWriter writer, java.lang.String entityName)
          Write out entity type selector.
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Servlet implementation of HTTP get.
 void doHttp(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Handle HTTP request.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Servlet implementation of HTTP post.
 
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
 

Constructor Detail

DataAdminServlet

public DataAdminServlet()
Method Detail

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
Servlet implementation of HTTP post.

Overrides:
doPost in class javax.servlet.http.HttpServlet

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
Servlet implementation of HTTP get.

Overrides:
doGet in class javax.servlet.http.HttpServlet

doHttp

public void doHttp(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
Handle HTTP request.


doEntitySwitcherForm

public void doEntitySwitcherForm(java.io.PrintWriter writer,
                                 java.lang.String entityName)
                          throws java.lang.ClassNotFoundException
Write out entity type selector.

Parameters:
writer -
entityName -
Throws:
java.lang.ClassNotFoundException


Copyright © 2007-2008 The International Moth Class Association (IMCA).. All Rights Reserved.