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

Method getServletContext

java/jakarta/servlet/GenericServlet.java:113–116  ·  view source on GitHub ↗

Returns a reference to the ServletContext in which this servlet is running. See ServletConfig#getServletContext. This method is supplied for convenience. It gets the context from the servlet's ServletConfig object. @return ServletContext the ServletContext</co

()

Source from the content-addressed store, hash-verified

111 * method
112 */
113 @Override
114 public ServletContext getServletContext() {
115 return getServletConfig().getServletContext();
116 }
117
118 /**
119 * Returns information about the servlet, such as author, version, and copyright. By default, this method returns an

Callers 1

logMethod · 0.95

Calls 2

getServletConfigMethod · 0.95
getServletContextMethod · 0.65

Tested by

no test coverage detected