|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.dbforms.servlets.ConfigServlet
public class ConfigServlet
This Servlet runs at application startup and reads the XML configuration in dbforms-config.xml, populates a DbFormsConfig - Object and stores it in application context.
| Constructor Summary | |
|---|---|
ConfigServlet()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Gracefully shut down this controller servlet, releasing any resources that were allocated at initialization. |
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Process an HTTP "GET" request. |
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Process an HTTP "POST" request. |
void |
init()
Initialize this servlet. |
protected void |
initApplicationResources()
Initialize the SubClass information use by the ResourceBundle for this application. |
protected void |
initLocaleKey()
Initialize the Locale key for Session scope. |
void |
initLogging()
Initialize Logging for this web application a url/path to a log4j properties or xml file should be defined by the servlet init parameter "log4j.configuration" |
protected void |
initXMLConfig()
Initialize the mapping information for this application. |
protected void |
initXMLConfigFile(String config)
DOCUMENT ME! |
protected void |
initXMLErrors()
Initialize the mapping information for this application. |
protected void |
initXMLValidator()
Initialize the ValidatorResources information for this application. |
protected void |
initXMLValidatorRules(ValidatorResources resources,
String validator_rules)
DOCUMENT ME! |
protected void |
initXMLValidatorValidation(ValidatorResources resources,
String validation)
DOCUMENT ME! |
protected void |
process(HttpServletRequest request,
HttpServletResponse response)
Process an HTTP request. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, 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 |
| Constructor Detail |
|---|
public ConfigServlet()
| Method Detail |
|---|
public void destroy()
destroy in interface Servletdestroy in class GenericServlet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException
doGet in class HttpServletrequest - The servlet request we are processingresponse - The servlet response we are creating
IOException - if an input/output error occurs
ServletException - if a servlet exception occurs
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException
doPost in class HttpServletrequest - The servlet request we are processingresponse - The servlet response we are creating
IOException - if an input/output error occurs
ServletException - if a servlet exception occurs
public void init()
throws ServletException
init in class GenericServletServletException - if we cannot configure ourselves correctlypublic void initLogging()
protected void initApplicationResources()
IOException - if an input/output error is encountered
ServletException - if we cannot initialize these resourcesprotected void initLocaleKey()
protected void initXMLConfig()
throws IOException,
ServletException
IOException - if an input/output error is encountered
ServletException - if we cannot initialize these resources
protected void initXMLConfigFile(String config)
throws IOException,
ServletException
config - DOCUMENT ME!
IOException - DOCUMENT ME!
ServletException - DOCUMENT ME!
protected void initXMLErrors()
throws IOException,
ServletException
IOException - if an input/output error is encountered
ServletException - if we cannot initialize these resources
protected void initXMLValidator()
throws ServletException
IOException - if an input/output error is encountered
ServletException - if we cannot initialize these resources
protected void initXMLValidatorRules(ValidatorResources resources,
String validator_rules)
throws ServletException
resources - DOCUMENT ME!validator_rules - DOCUMENT ME!
IOException - DOCUMENT ME!
ServletException - DOCUMENT ME!
protected void initXMLValidatorValidation(ValidatorResources resources,
String validation)
throws ServletException
resources - DOCUMENT ME!validation - DOCUMENT ME!
IOException - DOCUMENT ME!
ServletException - DOCUMENT ME!
protected void process(HttpServletRequest request,
HttpServletResponse response)
throws IOException
request - The servlet request we are processingresponse - The servlet response we are creating
IOException - if an input/output error occurs
ServletException - if a servlet exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||