构造器和说明 |
---|
RouteMatcher() |
限定符和类型 | 方法和说明 |
---|---|
Route |
addRoute(String path,
RouteHandler handler,
HttpMethod httpMethod) |
void |
clear() |
List<Route> |
getAfter(String path)
Find all in after of the hooks
|
List<Route> |
getBefore(String path)
Find all in before of the hook
|
List<Route> |
getMiddleware() |
void |
initMiddleware(List<WebHook> hooks) |
Route |
lookupRoute(String httpMethod,
String path) |
void |
route(String path,
Class<?> clazz,
String methodName) |
void |
route(String path,
Class<?> clazz,
String methodName,
HttpMethod httpMethod) |
public Route addRoute(String path, RouteHandler handler, HttpMethod httpMethod)
public void route(String path, Class<?> clazz, String methodName, HttpMethod httpMethod)
public List<Route> getBefore(String path)
path
- request pathpublic List<Route> getAfter(String path)
path
- request pathpublic void clear()
Copyright © 2017. All rights reserved.