public class ActionMapping extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<String,Action> |
mapping |
protected Routes |
routes |
protected static String |
SLASH |
| 构造器和说明 |
|---|
ActionMapping(Routes routes) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
buildActionMapping() |
protected String |
buildMsg(String actionKey,
Class<? extends Controller> controllerClass,
Method method) |
Action |
getAction(String url,
String[] urlPara)
Support four types of url
1: http://abc.com/controllerPath ---> 00
2: http://abc.com/controllerPath/para ---> 01
3: http://abc.com/controllerPath/method ---> 10
4: http://abc.com/controllerPath/method/para ---> 11
The controllerPath can also contains "/"
Example: http://abc.com/uvw/xyz/method/para
|
List<String> |
getAllActionKeys() |
protected List<Routes> |
getRoutesList() |
protected Routes routes
public ActionMapping(Routes routes)
protected void buildActionMapping()
protected String buildMsg(String actionKey, Class<? extends Controller> controllerClass, Method method)
public Action getAction(String url, String[] urlPara)
Copyright © 2022. All rights reserved.