public class RouteMapping extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
RouteMapping.Param
表示一个 http param 表达式
|
| 构造器和说明 |
|---|
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() |
static String |
prettyMethods(MethodType[] types)
打印 @Route.method.
|
static String |
prettyParams(String[] params)
打印 @Route.params
|
String |
prettyPath() |
com.bastengao.struts2.freeroute.ActionInfo |
toAction() |
String |
toString() |
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)
public com.bastengao.struts2.freeroute.ActionInfo toAction()
public ContentBase getContentBase()
public String getRoutePath()
public List<MethodType> getHttpMethods()
public List<RouteMapping.Param> getParams()
public Class getAction()
public Method getMethod()
public boolean hasPathVariables()
public Pattern getRoutePathPattern()
public Map<CookieValue,Field> getCookieValues()
public String prettyPath()
public static String prettyMethods(MethodType[] types)
types - Copyright © 2013 bastengao. All Rights Reserved.