public class ActionMapping extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,Action> |
mapping |
protected Routes |
routes |
protected static String |
SLASH |
Constructor and Description |
---|
ActionMapping(Routes routes) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildActionMapping() |
protected Set<String> |
buildExcludedMethodName() |
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/controllerKey ---> 00
2: http://abc.com/controllerKey/para ---> 01
3: http://abc.com/controllerKey/method ---> 10
4: http://abc.com/controllerKey/method/para ---> 11
The controllerKey can also contains "/"
Example: http://abc.com/uvw/xyz/method/para
|
List<String> |
getAllActionKeys() |
protected List<Routes> |
getRoutesList() |
protected static final String SLASH
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 © 2018. All rights reserved.