MCPcopy Create free account
hub / github.com/apache/tomcat / service

Method service

java/org/apache/catalina/servlets/CGIServlet.java:528–542  ·  view source on GitHub ↗
(HttpServletRequest req, HttpServletResponse res)

Source from the content-addressed store, hash-verified

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 /**

Callers

nothing calls this directly

Calls 5

doGetMethod · 0.95
getMethodMethod · 0.65
containsMethod · 0.65
serviceMethod · 0.65
sendErrorMethod · 0.65

Tested by

no test coverage detected