Notes (pros & cons)

  • in order to create endpoint XXX you must create XXXRequest and XXXResponse respectively
  • private fields and fields name which starts with "_" are excluded from generated source codes
  • configuration is more likely to made in a ServletContextListener for it is only need to run once, but it is moved to Servlet for the sake of brevity.