org.sandev.tools.ConfigEditor
Class XHTMLConfigEditorServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.sandev.tools.ConfigEditor.XHTMLConfigEditorServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class XHTMLConfigEditorServlet
extends javax.servlet.http.HttpServlet

An XHTML servlet UI for editing the deployment configuration. AUTOGENERATED FILE, DO NOT EDIT DIRECTLY.
source: declared in build
generator: org.sandev.generator.ConfigEditorGenerator
time: Dec 2, 2005 6:38:59 PM
See the ConfigurationStruct for details on what information comprises an application deployment.

See Also:
Serialized Form

Field Summary
protected static XHTMLFormEditor singleton_editor
          Singleton XHTMLFormEditor reference.
 
Constructor Summary
XHTMLConfigEditorServlet()
           
 
Method Summary
protected  void createFormEditor()
          This method initializes our XHTMLFormEditor instance.
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Pass HTTP 'GET' request over to handleRequest method.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Pass HTTP 'POST' request over to handleRequest method.
protected  XHTMLFormEditor getXHTMLFormEditor()
          Initializing accessor for the XHTMLFormEditor we use.
protected  void handleRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Use our XHTMLFormEditor to process the request.
 
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

singleton_editor

protected static XHTMLFormEditor singleton_editor
Singleton XHTMLFormEditor reference. There's no reason to have more than one XHTMLFormEditor instance kicking around, or to incur the instantiation overhead more than once. So we maintain a single reference for use.

Constructor Detail

XHTMLConfigEditorServlet

public XHTMLConfigEditorServlet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
Pass HTTP 'GET' request over to handleRequest method.


doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
Pass HTTP 'POST' request over to handleRequest method.


handleRequest

protected void handleRequest(javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse res)
Use our XHTMLFormEditor to process the request.


getXHTMLFormEditor

protected XHTMLFormEditor getXHTMLFormEditor()
Initializing accessor for the XHTMLFormEditor we use. Once the instance is set up, we just return it without any synchronization overhead.


createFormEditor

protected void createFormEditor()
This method initializes our XHTMLFormEditor instance. This method is synchronized so that two separate servlet instances won't both try to initialize the common reference at the same time. We test that our reference is null, so subsequent calls to this method after things are set up are harmless.