Jwma

dtw.webmail
Class JwmaController

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--dtw.webmail.JwmaController
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class JwmaController
extends javax.servlet.http.HttpServlet

Class extending the HttpServlet to implement the main controller of jwma.

Please see the related documentation for more detailed information on process flow and functionality.

Version:
0.9.7 07/02/2003
Author:
Dieter Wimberger
See Also:
Serialized Form

Constructor Summary
JwmaController()
           
 
Method Summary
 java.lang.String getServletInfo()
          Returns servlet info as String.
 void init(javax.servlet.ServletConfig config)
          Initializes the servlet when it is loaded by the servlet engine.
 void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Handles the incoming requests.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JwmaController

public JwmaController()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Initializes the servlet when it is loaded by the servlet engine.

This implementation "boots" jwma by starting up the JwmaKernel.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config - the configuration as ServletConfig
Throws:
javax.servlet.ServletException - if initialization fails.
See Also:
JwmaKernel

service

public void service(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws javax.servlet.ServletException,
                    java.io.IOException
Handles the incoming requests.

This implementation ensures authenticated session existence, retrieves the acton and todo parameters, and dispatches all valid actions to the target dispatchers.

The flow of the process is described in the related documentation.

Application related errors/exceptions are handled by forwarding the request to an error page, or the actual page in case of an inlined error.

Overrides:
service in class javax.servlet.http.HttpServlet
Parameters:
req - a reference to the actual HttpServletRequest instance.
res - a reference to the actual HttpServletResponse instance.
Throws:
javax.servlet.ServletException - if servlet related operations fail.
java.io.IOException - if i/o operations fail.

getServletInfo

public java.lang.String getServletInfo()
Returns servlet info as String.

Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class javax.servlet.GenericServlet
Returns:
Info about this servlet as String.

Jwma

Copyright © 2000-2003 jwma team (All Rights Reserved.)