com.mlw.fps.controller
Class BaseAction
java.lang.Object
|
+--org.apache.struts.action.Action
|
+--com.mlw.fps.controller.BaseAction
- Direct Known Subclasses:
- ConsoleAction, FilterAction, GameStatsAction, MapStatsAction, OptionsAction, PlayerStatsAction, WeaponStatsAction, WelcomeAction
- public abstract class BaseAction
- extends org.apache.struts.action.Action
All actions should extend this abstract class. The
purpose of this base class is to serve the viewManager
to the actions.
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
Fields inherited from class org.apache.struts.action.Action |
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY |
Method Summary |
boolean |
doInitialization()
Can override this if the configuration check should not be performed. |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Checks if the ConsoleManager is initialized, then passes controll to the
implementing class by calling executeAction
response (or forward to another web component that will create it). |
abstract org.apache.struts.action.ActionForward |
executeAction(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
ViewManager manager)
Process the specified HTTP request, and create the corresponding HTTP |
Methods inherited from class org.apache.struts.action.Action |
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
BaseAction
public BaseAction()
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Checks if the ConsoleManager is initialized, then passes controll to the
implementing class by calling
executeAction
response (or forward to another web component that will create it).
Return an ActionForward
instance describing where and how
control should be forwarded, or null
if the response has
already been completed.
- Overrides:
execute
in class org.apache.struts.action.Action
- Parameters:
form
- ActionFormmapping
- The ActionMapping used to select this instancerequest
- The HTTP request we are processingresponse
- The HTTP response we are creating
- Returns:
- Forward
- Throws:
java.io.IOException
- if an input/output error occurs
javax.servlet.ServletException
- if a servlet exception occurs
executeAction
public abstract org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
ViewManager manager)
throws java.io.IOException,
javax.servlet.ServletException
- Process the specified HTTP request, and create the corresponding HTTP
- Parameters:
mapping
- The ActionMapping used to select this instanceform
- ActionFormmanager
- ViewManager assigned to this session.
- Returns:
- Forward
- Throws:
java.io.IOException
- if an input/output error occurs
javax.servlet.ServletException
- if a servlet exception occurs
doInitialization
public boolean doInitialization()
- Can override this if the configuration check should not be performed.
- Returns:
- boolean, check.
Copyright © 2003 mlavilson. All Rights Reserved.