Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 536 Bytes

flow.md

File metadata and controls

13 lines (9 loc) · 536 Bytes

Request Flow

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()

  1. create HttpRequest object
  2. create HttpResponse object
  3. call req.parseRoute() to parse uri and its corresponding controller and action.
  4. create Controller object
  5. call Controller object's action method