Every application follows the same flow:
Application's entry is net.jkcode.jkmvc.http.JkFilter
, and nd it just call HttpHandler.handle(req as HttpServletRequest, res as HttpServletResponse)
Now, let's read net.jkcode.jkmvc.http.HttpHandler#handle()
- create HttpRequest object
- create HttpResponse object
- call
req.parseRoute()
to parse uri and its corresponding controller and action. - create Controller object
- call Controller object's action method