com.astroshare.astroonline.application
Class astroonline

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

public class astroonline
extends javax.servlet.http.HttpServlet

Servlet to process content pages.

All content pages are served through this servlet. The servlet makes sure all configuration data is available and uses the Page class to process the page.

See Also:
Page, Serialized Form

Constructor Summary
astroonline()
           
 
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

astroonline

public astroonline()
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. These values are used for further processing at the next stage of a request.

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)
            throws javax.servlet.ServletException,
                   java.io.IOException

Process a HTTP post request.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - HTTP request object.
response - HTTP response object.
Throws:
javax.servlet.ServletException - Exception, thrown on servlet errors.
java.io.IOException - Exception, thrown on I/O errors.
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)
           throws javax.servlet.ServletException,
                  java.io.IOException

Process a HTTP get request.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - HTTP request object.
response - HTTP response object.
Throws:
javax.servlet.ServletException - Exception, thrown on servlet errors.
java.io.IOException - Exception, thrown on I/O errors.
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 processes all requests for content pages.

Parameters:
request - HTTP request object.
response - HTTP response object.
Throws:
java.io.IOException - Exception, thrown on I/O errors.


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