public class ActionHandler extends Handler
Modifier and Type | Field and Description |
---|---|
protected ActionMapping |
actionMapping |
protected ControllerFactory |
controllerFactory |
protected boolean |
devMode |
protected static RenderManager |
renderManager |
next, nextHandler
Constructor and Description |
---|
ActionHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean[] isHandled)
handle
1: Action action = actionMapping.getAction(target)
2: new Invocation(...).invoke()
3: render(...)
|
protected void |
init(ActionMapping actionMapping,
Constants constants) |
protected boolean devMode
protected ActionMapping actionMapping
protected ControllerFactory controllerFactory
protected static final RenderManager renderManager
protected void init(ActionMapping actionMapping, Constants constants)
public void handle(String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean[] isHandled)
handle
in class Handler
target
- url target of this web http requestrequest
- HttpServletRequest of this http requestresponse
- HttpServletRequest of this http requestisHandled
- JFinalFilter will invoke doFilter() method if isHandled[0] == false,
it is usually to tell Filter should handle the static resource.Copyright © 2018. All rights reserved.