se.kmr.scam.client.http
Class MainController

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byse.kmr.scam.client.http.MainController
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
UploadController

public class MainController
extends HttpServlet

Main entry point for HTTP-requests. Execute command-chains and redirect to JSP when applicable.

Version:
$Revision: 1.29 $
Author:
Jöran Stark, jand
See Also:
Serialized Form
Created:
den 5 juni 2002
To do:
Fix error handling, Place XML-files outside jar-package (dynamically loaded)

Constructor Summary
MainController()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          Handles GET-requests from clients.
 void doPost(HttpServletRequest request, HttpServletResponse response)
          Handles POST-requests from clients.
 void init()
          Configures and initialize the controller.
 
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

MainController

public MainController()
Method Detail

init

public void init()
          throws ServletException
Configures and initialize the controller.

Throws:
ServletException - Description of the Exception

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
Handles GET-requests from clients.

Parameters:
request - holds information from client
response - holds response information sent back to client
Throws:
ServletException - thrown in case internal exception.
IOException - thrown in case of exception in internal IO.

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   IOException
Handles POST-requests from clients.

Parameters:
request - holds information from client
response - holds response information sent back to client
Throws:
ServletException - thrown in case internal exception.
IOException - thrown in case of exception in internal IO.


Copyright © 2003 SCAM. All Rights Reserved.