com.astroshare.astroonline.application
Class admin

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.astroshare.astroonline.application.admin
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class admin
extends javax.servlet.http.HttpServlet

Servlet to process admin pages.

Every admin page goes through this servlet. The servlet makes sure all configuration data is available and uses the Page class to process the page.

The usage of admin pages for web administration can be turned on or off by changing the value for webAdmin in table Configuration to respectively true or false.

The admin utility is still under development...

See Also:
Page, Serialized Form

Constructor Summary
admin()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           Process a HTTP get request.
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           Process a HTTP post request.
 void doRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           Process a HTTP (post or get) request.
 void init(javax.servlet.ServletConfig config)
           Initialize servlet.
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

admin

public admin()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException

Initialize servlet. If the configuration file was not yet loaded, this is done here first. The configuration values are used for further processing at the next stages of a request processing.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config -
Throws:
javax.servlet.ServletException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)

Process a HTTP post request.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - HTTP request object.
response - HTTP response object.
See Also:
doRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)

Process a HTTP get request.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - HTTP request object.
response - HTTP response object.
See Also:
doRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

doRequest

public void doRequest(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)

Process a HTTP (post or get) request. This method processing all requests for admin pages.

Parameters:
request - HTTP request object.
response - HTTP response object.


Astro-Online © 2001 − 2008 Astro Share
Documentation generated on: Thursday August 12th 2008 (PS)