public class RoutesHandler extends Handler
RoutesHandler convert url to route format that Routes can find Controller and Method
nextHandler| 构造器和说明 |
|---|
RoutesHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addRoute(String regex,
Controller controller,
String method) |
void |
addRoute(String regex,
String controllerKey) |
void |
addRoute(String regex,
String controllerKey,
String method) |
void |
handle(String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean[] isHandled)
Handle target
|
public void addRoute(String regex, Controller controller, String method)
public void handle(String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean[] isHandled)
Handlerhandle 在类中 Handlertarget - url target of this web http requestrequest - HttpServletRequest of this http requestresponse - HttpServletRequest of this http requestisHandled - JFinalFilter will invoke doFilter() method if isHandled[0] == false, it is usually
to tell Filter should handle the static resource.Copyright © 2015. All rights reserved.