|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.apache.struts.action.ActionServlet com.pow2.acl.struts.action.ACLActionServlet
Ask the specified Action instance to handle this request.
If the input action subclasses ACLDispatcherAction
, execute:
validateSession
method;
if that method returns false
, redirect to the resource
specified by the invalidSessionForward
method
validatePermissions
method;
if that method returns false
, redirect to the resource
specified by the noPermissionsForward
method
perform
method.
Field Summary |
Fields inherited from class org.apache.struts.action.ActionServlet |
actions, application, bufferSize, config, content, dataSources, debug, defaultLocale, factoryClass, formBeanClass, formBeans, forwardClass, forwards, internal, internalName, locale, mappingClass, mappings, maxFileSize, multipartClass, nocache, registrations, servletMapping, servletName, tempDir, validate, validating |
Constructor Summary | |
ACLActionServlet()
|
Method Summary | |
void |
init()
Initialize this servlet. |
protected org.apache.struts.action.ActionForward |
processActionPerform(org.apache.struts.action.Action action,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formInstance,
HttpServletRequest request,
HttpServletResponse response)
Ask the specified Action instance to handle this request. |
Methods inherited from class org.apache.struts.action.ActionServlet |
addDataSource, addFormBean, addForward, addMapping, addServletMapping, destroy, destroyActions, destroyApplication, destroyDataSources, destroyInternal, doGet, doPost, findDataSource, findFormBean, findForward, findMapping, getBufferSize, getDebug, getFormBeanClass, getForwardClass, getMappingClass, getMaxFileSize, getMultipartClass, getResources, getTempDir, initActions, initApplication, initDataSources, initDebug, initDigester, initDigesterOld, initInternal, initMapping, initOther, initServlet, initUpload, log, process, processActionCreate, processActionForm, processActionForward, processContent, processForward, processInclude, processLocale, processMapping, processNoCache, processPath, processPopulate, processPreprocess, processValidate, reload, removeFormBean, removeForward, removeMapping, setBufferSize, setFormBeanClass, setForwardClass, setMappingClass, setMaxFileSize, setMultipartClass, setTempDir |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
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 |
public ACLActionServlet()
Method Detail |
public void init() throws ServletException
ServletException
- if we cannot configure ourselves correctlyprotected org.apache.struts.action.ActionForward processActionPerform(org.apache.struts.action.Action action, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm formInstance, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
ACLDispatcherAction
, execute:
validateSession
method;
if that method returns false
, redirect to the resource
specified by the invalidSessionForward
method
validatePermissions
method;
if that method returns false
, redirect to the resource
specified by the noPermissionsForward
method
perform
method.
action
- The Action to process this requestmapping
- The ActionMapping we are processingformInstance
- The ActionForm we are processingrequest
- The servlet request we are processingresponse
- The servlet response we are creating
IOException
- if an input/output error occurs
ServletException
- if a servlet exception occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |