|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.openswing.swing.server.Controller
Title: OpenSwing Framework
Description: Server Controller (HTTP Servlet). It receives all client requests and dispatch them to the correct action class. This controller requires a user authentication before processing other requests: that request have method name: "login" The web.xml file must have the following parameters:
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of OpenSwing Framework. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it
Field Summary | |
static java.lang.String |
ACTION_CLASSES
action classes |
static java.lang.String |
CONTROLLER_CALLBACKS
class that derives from ControllerCallbacks |
static java.lang.String |
RESOURCES_FACTORY
identifier of internationalization settings (Resources object) stored in the servlet context |
static java.lang.String |
SESSION_ID_GENERATOR
session identifiers generator |
static java.lang.String |
SESSION_IDS
identifier of session identifiers stored in the servlet context |
static java.lang.String |
USER_SESSIONS
identifier of user sessions info stored in the servlet context |
Constructor Summary | |
Controller()
|
Method Summary | |
void |
destroy()
|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the HTTP GET request: this method is used to receive browser HTTP requests (like document requests...) |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the HTTP POST request: this method is coupled with ClientUtils.getData method. |
void |
init()
Initialize global variables. |
Methods inherited from class javax.servlet.http.HttpServlet |
service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SESSION_IDS
public static final java.lang.String USER_SESSIONS
public static final java.lang.String RESOURCES_FACTORY
public static final java.lang.String SESSION_ID_GENERATOR
public static final java.lang.String ACTION_CLASSES
public static final java.lang.String CONTROLLER_CALLBACKS
Constructor Detail |
public Controller()
Method Detail |
public void init() throws javax.servlet.ServletException
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |