0
以下示例來自oracle控制器示例。他們將doGet的所有內容轉換爲另一種方法。爲什麼要添加這個額外的抽象層?爲什麼將doGet抽象爲processRequest?
/** Handles the HTTP <code>GET</code> method.
* @param request servlet request
* @param response servlet response
*/
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, java.io.IOException {
processRequest(request, response);
}