org.apache.commons.scaffold.http
Class SetUp

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.commons.scaffold.http.ResourceServlet
              extended by org.apache.commons.scaffold.http.ConnectionServlet
                  extended by org.apache.commons.scaffold.http.SetUp
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SetUp
extends ConnectionServlet

Load a connection adaptor and initialize default command store for use with StorageBeans.

This servlet can be configured using the following init-params:

command_path Path to SQL commands (Properties file).

NOTE: Unlike the path to the Struts application resources file, the paths for this servlet should use a slash and includes the properties extension.

The runtime processing of requests is handled by the Struts controller. This servlet is just to handle our own custom bits.

See Also:
Serialized Form

Field Summary
static String COMMAND_PARAMETER
          Parameter to specify a new path for commands used by the application [command_path].
static String COMMAND_PATH
          Default path for commands used by application ["resources/command.properties"].
 
Constructor Summary
SetUp()
           
 
Method Summary
protected  void initCustom()
          Initialize the SQL properties for the Artimus application.
 
Methods inherited from class org.apache.commons.scaffold.http.ConnectionServlet
initDefault
 
Methods inherited from class org.apache.commons.scaffold.http.ResourceServlet
destroy, destroyCustom, destroyDefault, getInitInt, getInitParameters, getInitString, getProperties, init, loadProperties, reload, setProperties
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND_PARAMETER

public static String COMMAND_PARAMETER
Parameter to specify a new path for commands used by the application [command_path].


COMMAND_PATH

public static String COMMAND_PATH
Default path for commands used by application ["resources/command.properties"].

Constructor Detail

SetUp

public SetUp()
Method Detail

initCustom

protected void initCustom()
                   throws IOException,
                          javax.servlet.ServletException
Initialize the SQL properties for the Artimus application. Loads the commands for the keys and articles packages.

Overrides:
initCustom in class ResourceServlet
Throws:
IOException - if an input/output error is encountered
javax.servlet.ServletException - if we cannot initialize these resources


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.