public class ActionHandler extends Handler
| 限定符和类型 | 字段和说明 |
|---|---|
protected ActionMapping |
actionMapping |
protected ActionReporter |
actionReporter |
protected ControllerFactory |
controllerFactory |
protected boolean |
devMode |
protected static RenderManager |
renderManager |
next, nextHandler| 构造器和说明 |
|---|
ActionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Action |
getAction(String target,
String[] urlPara)
子类覆盖 getAction 方法可以定制路由功能
|
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 ActionReporter actionReporter
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 在类中 Handlertarget - url target of this web http requestrequest - HttpServletRequest of this http requestresponse - HttpServletResponse of this http responseisHandled - JFinalFilter will invoke doFilter() method if isHandled[0] == false,
it is usually to tell Filter should handle the static resource.Copyright © 2022. All rights reserved.