public class RoutesHandler extends Handler
RoutesHandler convert url to route format that Routes can find Controller and Method
next, nextHandler
Constructor and Description |
---|
RoutesHandler() |
Modifier and Type | Method and Description |
---|---|
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)
Handler
handle
in class Handler
target
- 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 © 2018. All rights reserved.