| org.strecks.controller.BaseRequestProcessor org.strecks.controller.ControllerRequestProcessor
ControllerRequestProcessor | public class ControllerRequestProcessor extends BaseRequestProcessor (Code) | | Implementation of RequestProcessor subclass for adding extension specific
functionality using hooks provided by BaseRequestProcessor
author: Phil Zoio |
Method Summary | |
protected Action | extendedProcessActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping actionMapping) | protected ActionForward | extendedProcessActionPerform(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping) Handles request processing. | ActionCreator | getActionCreator() | ControllerProcessorDelegate | getDelegate() | boolean | hasAction(String className) | protected void | postInit(ActionServlet servlet, ModuleConfig config) | protected ActionForm | postProcessActionForm(HttpServletRequest request, HttpServletResponse response, ActionForm form) | protected void | postValidate(HttpServletRequest request, ActionMapping mapping, boolean validate) | protected ActionForm | prePopulate(ActionForm form, HttpServletRequest request) | protected void | preProcessCachedMessages(HttpServletRequest request) Removes Globals.ERROR_KEY from session and adds as a request attribute. | protected ActionForm | preValidate(ActionForm form, HttpServletRequest request) | void | setActionContextFactory(ActionContextFactory actionContextFactory) | void | setActionCreator(ActionCreator actionCreator) | void | setDelegate(ControllerProcessorDelegate delegate) | void | setFormHandler(FormWrapper formHandler) | void | setFormPopulationSource(FormPopulateSource formPopulateSource) | void | setFormValidationHandler(FormValidationHandler formValidationHandler) | void | setRequestPreprocessor(RequestPreprocessor requestPreprocessor) | void | setServletContext(ServletContext servletContext) |
extendedProcessActionPerform | protected ActionForward extendedProcessActionPerform(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping) throws IOException, ServletException(Code) | | Handles request processing. If Action is instance of
ControllerAction then control is passed on to the delegate. Otherwise,
standard Struts action processing is carried out.
Before execution, any configured BeforeInterceptor s are executed. Any
exception thrown by these are handled by the Struts-configured exception handler. For
example, if the second of three BeforeInterceptor s throws an exception, then
the third will not be executed, and neither will the action's execute method or any
AfterInterceptors
AfterInterceptors , by contrast will either all be executed or none executed.
If an exception is thrown by any AfterInterceptor , it will be logged and
ignored afterwards.
|
postInit | protected void postInit(ActionServlet servlet, ModuleConfig config)(Code) | | Performs extension-specific configuration tasks
|
postProcessActionForm | protected ActionForm postProcessActionForm(HttpServletRequest request, HttpServletResponse response, ActionForm form)(Code) | | Provides overriding behaviour of ControllerRequestProcessor for
processActionForm()
|
preProcessCachedMessages | protected void preProcessCachedMessages(HttpServletRequest request)(Code) | | Removes Globals.ERROR_KEY from session and adds as a request attribute. This
allows errors to support redirect after post. The errors are added to the session
|
Methods inherited from org.strecks.controller.BaseRequestProcessor | protected Action extendedProcessActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping actionMapping) throws IOException(Code)(Java Doc) protected ActionForward extendedProcessActionPerform(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping) throws IOException, ServletException(Code)(Java Doc) public void init(ActionServlet servlet, ModuleConfig config) throws ServletException(Code)(Java Doc) protected void postInit(ActionServlet servlet, ModuleConfig config)(Code)(Java Doc) protected ActionForm postProcessActionForm(HttpServletRequest request, HttpServletResponse response, ActionForm form)(Code)(Java Doc) protected void postValidate(HttpServletRequest request, ActionMapping mapping, boolean validate)(Code)(Java Doc) protected ActionForm prePopulate(ActionForm form, HttpServletRequest request)(Code)(Java Doc) protected void preProcessCachedMessages(HttpServletRequest request)(Code)(Java Doc) protected ActionForm preValidate(ActionForm form, HttpServletRequest request)(Code)(Java Doc) protected Action processActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping actionMapping) throws IOException(Code)(Java Doc) protected ActionForm processActionForm(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)(Code)(Java Doc) final protected ActionForward processActionPerform(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping) throws IOException, ServletException(Code)(Java Doc) protected void processCachedMessages(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc) protected void processPopulate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws ServletException(Code)(Java Doc) protected boolean processValidate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws IOException, ServletException(Code)(Java Doc)
|
|
|