| 526 | |
| 527 | |
| 528 | @Override |
| 529 | protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { |
| 530 | |
| 531 | String method = req.getMethod(); |
| 532 | if (cgiMethodsAll || cgiMethods.contains(method)) { |
| 533 | doGet(req, res); |
| 534 | } else if (DEFAULT_SUPER_METHODS.contains(method)) { |
| 535 | // If the CGI servlet is explicitly configured to handle one of |
| 536 | // these methods it will be handled in the previous condition |
| 537 | super.service(req, res); |
| 538 | } else { |
| 539 | // Unsupported method |
| 540 | res.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED); |
| 541 | } |
| 542 | } |
| 543 | |
| 544 | |
| 545 | /** |