|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.bastengao.struts2.freeroute.RouteMapping
public class RouteMapping
路由映射
此类为不变类(一但构造后,不会改变)
| 嵌套类摘要 | |
|---|---|
static class |
RouteMapping.Param
表示一个 http param 表达式 |
| 字段摘要 | |
|---|---|
private Class |
action
|
private ActionInfo |
actionInfo
|
private ContentBase |
contentBase
|
private Map<CookieValue,Field> |
cookieValues
|
private boolean |
hasPathVariables
|
private List<MethodType> |
httpMethods
|
private List<String> |
httpParams
|
private Method |
method
|
private List<RouteMapping.Param> |
params
|
private Route |
route
|
private String |
routePath
|
private Pattern |
routePathPattern
|
private List<String> |
variableNames
|
| 构造方法摘要 | |
|---|---|
RouteMapping(ContentBase contentBase,
Route route,
Class action,
Method method)
|
|
RouteMapping(ContentBase contentBase,
Route controllerRoute,
Route methodRoute,
Class action,
Method method)
|
|
RouteMapping(Route route,
Class action,
Method method)
|
|
RouteMapping(Route controllerRoute,
Route methodRoute,
Class action,
Method method)
|
|
| 方法摘要 | |
|---|---|
Class |
getAction()
|
ContentBase |
getContentBase()
|
Map<CookieValue,Field> |
getCookieValues()
|
List<MethodType> |
getHttpMethods()
unmodified list |
List<String> |
getHttpParams()
unmodified list |
Method |
getMethod()
|
List<RouteMapping.Param> |
getParams()
|
String |
getRoutePath()
|
Pattern |
getRoutePathPattern()
|
List<String> |
getVariableNames()
|
boolean |
hasPathVariables()
|
private void |
initActionInfo()
缓存 actionInfo |
private void |
initCookieValues()
初始化 cookie |
private void |
initParams()
初始化 params |
private void |
initPathVariables()
初始化 pathVariables |
private String |
parseRoutePath(Route controllerRoute,
Route methodRoute)
|
static String |
prettyMethods(MethodType[] types)
打印 @Route.method. |
static String |
prettyParams(String[] params)
打印 @Route.params |
String |
prettyPath()
|
ActionInfo |
toAction()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
private final ContentBase contentBase
private final Route route
private final String routePath
private final List<MethodType> httpMethods
private final List<String> httpParams
private List<RouteMapping.Param> params
private final Class action
private final Method method
private boolean hasPathVariables
private List<String> variableNames
private Pattern routePathPattern
private Map<CookieValue,Field> cookieValues
private ActionInfo actionInfo
| 构造方法详细信息 |
|---|
public RouteMapping(Route route,
Class action,
Method method)
public RouteMapping(ContentBase contentBase,
Route route,
Class action,
Method method)
public RouteMapping(Route controllerRoute,
Route methodRoute,
Class action,
Method method)
public RouteMapping(ContentBase contentBase,
Route controllerRoute,
Route methodRoute,
Class action,
Method method)
| 方法详细信息 |
|---|
private String parseRoutePath(Route controllerRoute,
Route methodRoute)
private void initParams()
private void initPathVariables()
private void initCookieValues()
private void initActionInfo()
public ActionInfo toAction()
public ContentBase getContentBase()
public String getRoutePath()
public List<String> getHttpParams()
public List<MethodType> getHttpMethods()
public List<RouteMapping.Param> getParams()
public Class getAction()
public Method getMethod()
public boolean hasPathVariables()
public List<String> getVariableNames()
public Pattern getRoutePathPattern()
public Map<CookieValue,Field> getCookieValues()
public String prettyPath()
public static String prettyParams(String[] params)
params -
public static String prettyMethods(MethodType[] types)
types -
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||