org.sourcejammer.web.servlet
Class AppConfigInitServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.sourcejammer.web.servlet.AppConfigInitServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class AppConfigInitServlet
extends javax.servlet.http.HttpServlet

Title: SourceJammer v 0.1.0 Description: Copyright: Copyright (c) 2001 Company:

Version:
1.0
Author:
Robert MacGrogan
See Also:
Serialized Form

Field Summary
static java.lang.String BASE_PATH_INIT_PARAM
          Servlet initialization parameter that specifies the base configuration path.
private  java.lang.String msBaseConfigPath
           
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
AppConfigInitServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void init(javax.servlet.ServletConfig config)
          Initialize global variables and load the configuration information.
protected  void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Reload the system configuration information and send back a notification to the user.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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

msBaseConfigPath

private java.lang.String msBaseConfigPath

BASE_PATH_INIT_PARAM

public static final java.lang.String BASE_PATH_INIT_PARAM
Servlet initialization parameter that specifies the base configuration path.

See Also:
Constant Field Values
Constructor Detail

AppConfigInitServlet

public AppConfigInitServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Initialize global variables and load the configuration information.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config - configuration data for the servlet from the web.xml file.
Throws:
javax.servlet.ServletException - thrown when there is an exception processing the configuration data.

doGet

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

doPost

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

process

protected void process(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       java.io.IOException
Reload the system configuration information and send back a notification to the user.

Parameters:
request - HTTP object holding the request from the user.
response - HTTP response object - used to send back the response to the user.
Throws:
javax.servlet.ServletException - thrown when there is a general exception while the servlet is processing the request.
java.io.IOException - thrown when there is a I/O error while the servlet is processing the request.


Copyright 2003 Soucejammer project.