Uses of Interface
jakarta.servlet.ServletContext
-
Packages that use ServletContext Package Description jakarta.servlet The jakarta.servlet package contains a number of classes and interfaces that describe and define the contracts between a servlet class and the runtime environment provided for an instance of such a class by a conforming servlet container.jakarta.servlet.http The jakarta.servlet.http package contains a number of classes and interfaces that describe and define the contracts between a servlet class running under the HTTP protocol and the runtime environment provided for an instance of such a class by a conforming servlet container.jakarta.servlet.jsp org.apache.jasper org.apache.jasper.compiler org.apache.jasper.runtime org.apache.jasper.servlet org.apache.tomcat -
-
Uses of ServletContext in jakarta.servlet
Methods in jakarta.servlet that return ServletContext Modifier and Type Method Description ServletContextServletContext. getContext(java.lang.String uripath)Returns aServletContextobject that corresponds to a specified URL on the server.ServletContextFilterConfig. getServletContext()Returns a reference to theServletContextin which the caller is executing.ServletContextGenericFilter. getServletContext()ServletContextGenericServlet. getServletContext()Returns a reference to theServletContextin which this servlet is running.ServletContextServletConfig. getServletContext()Returns a reference to theServletContextin which the caller is executing.ServletContextServletContextEvent. getServletContext()Return the ServletContext that changed.ServletContextServletRequest. getServletContext()ServletContextServletRequestEvent. getServletContext()Get the associated ServletContext.ServletContextServletRequestWrapper. getServletContext()The default behavior of this method is to return getServletContext() on the wrapped request object.Methods in jakarta.servlet with parameters of type ServletContext Modifier and Type Method Description voidAsyncContext. dispatch(ServletContext context, java.lang.String path)voidServletContainerInitializer. onStartup(java.util.Set<java.lang.Class<?>> c, ServletContext ctx)Receives notification during startup of a web application of the classes within the web application that matched the criteria defined via theHandlesTypesannotation.Constructors in jakarta.servlet with parameters of type ServletContext Constructor Description ServletContextAttributeEvent(ServletContext source, java.lang.String name, java.lang.Object value)Construct a ServletContextAttributeEvent from the given context for the given attribute name and attribute value.ServletContextEvent(ServletContext source)Construct a ServletContextEvent from the given context.ServletRequestAttributeEvent(ServletContext sc, ServletRequest request, java.lang.String name, java.lang.Object value)Construct a ServletRequestAttributeEvent giving the servlet context of this web application, the ServletRequest whose attributes are changing and the name and value of the attribute.ServletRequestEvent(ServletContext sc, ServletRequest request)Construct a ServletRequestEvent for the given ServletContext and ServletRequest. -
Uses of ServletContext in jakarta.servlet.http
Methods in jakarta.servlet.http that return ServletContext Modifier and Type Method Description ServletContextHttpSession. getServletContext()Returns the ServletContext to which this session belongs. -
Uses of ServletContext in jakarta.servlet.jsp
Methods in jakarta.servlet.jsp that return ServletContext Modifier and Type Method Description abstract ServletContextPageContext. getServletContext()The ServletContext instance.Methods in jakarta.servlet.jsp with parameters of type ServletContext Modifier and Type Method Description abstract JspApplicationContextJspFactory. getJspApplicationContext(ServletContext context)Obtain theJspApplicationContextinstance that was associated within the passedServletContextfor this web application. -
Uses of ServletContext in org.apache.jasper
Methods in org.apache.jasper that return ServletContext Modifier and Type Method Description ServletContextJspCompilationContext. getServletContext()Constructors in org.apache.jasper with parameters of type ServletContext Constructor Description EmbeddedServletOptions(ServletConfig config, ServletContext context)Create an EmbeddedServletOptions object using data available from ServletConfig and ServletContext.JspCompilationContext(java.lang.String tagfile, TagInfo tagInfo, Options options, ServletContext context, JspServletWrapper jsw, JspRuntimeContext rctxt, Jar tagJar)JspCompilationContext(java.lang.String jspUri, Options options, ServletContext context, JspServletWrapper jsw, JspRuntimeContext rctxt) -
Uses of ServletContext in org.apache.jasper.compiler
Methods in org.apache.jasper.compiler with parameters of type ServletContext Modifier and Type Method Description static ELInterpreterELInterpreterFactory. getELInterpreter(ServletContext context)Obtain the correct EL Interpreter for the given web application.static TldCacheTldCache. getInstance(ServletContext servletContext)static JarScannerJarScannerFactory. getJarScanner(ServletContext ctxt)Obtain theJarScannerassociated with the specifiedServletContext.static StringInterpreterStringInterpreterFactory. getStringInterpreter(ServletContext context)Obtain the correct String Interpreter for the given web application.Constructors in org.apache.jasper.compiler with parameters of type ServletContext Constructor Description JspConfig(ServletContext ctxt)JspRuntimeContext(ServletContext context, Options options)Create a JspRuntimeContext for a web application context.TagPluginManager(ServletContext ctxt)TldCache(ServletContext servletContext, java.util.Map<java.lang.String,TldResourcePath> uriTldResourcePathMap, java.util.Map<TldResourcePath,TaglibXml> tldResourcePathTaglibXmlMap) -
Uses of ServletContext in org.apache.jasper.runtime
Methods in org.apache.jasper.runtime that return ServletContext Modifier and Type Method Description ServletContextJspContextWrapper. getServletContext()ServletContextPageContextImpl. getServletContext()Methods in org.apache.jasper.runtime with parameters of type ServletContext Modifier and Type Method Description static JspApplicationContextImplJspApplicationContextImpl. getInstance(ServletContext context)JspApplicationContextJspFactoryImpl. getJspApplicationContext(ServletContext context) -
Uses of ServletContext in org.apache.jasper.servlet
Classes in org.apache.jasper.servlet that implement ServletContext Modifier and Type Class Description classJspCServletContextSimpleServletContextimplementation without HTTP-specific methods.Methods in org.apache.jasper.servlet that return ServletContext Modifier and Type Method Description ServletContextJspCServletContext. getContext(java.lang.String uripath)Return the servlet context for the specified path.ServletContextJspServletWrapper. getServletContext()Methods in org.apache.jasper.servlet with parameters of type ServletContext Modifier and Type Method Description protected TldScannerJasperInitializer. newTldScanner(ServletContext context, boolean namespaceAware, boolean validate, boolean blockExternal)voidJasperInitializer. onStartup(java.util.Set<java.lang.Class<?>> types, ServletContext context)Constructors in org.apache.jasper.servlet with parameters of type ServletContext Constructor Description JspServletWrapper(ServletContext servletContext, Options options, java.lang.String tagFilePath, TagInfo tagInfo, JspRuntimeContext rctxt, Jar tagJar)TldPreScanned(ServletContext context, boolean namespaceAware, boolean validation, boolean blockExternal, java.util.Collection<java.net.URL> preScannedTlds)TldScanner(ServletContext context, boolean namespaceAware, boolean validation, boolean blockExternal)Initialise with the application's ServletContext. -
Uses of ServletContext in org.apache.tomcat
Methods in org.apache.tomcat with parameters of type ServletContext Modifier and Type Method Description voidJarScanner. scan(JarScanType scanType, ServletContext context, JarScannerCallback callback)Scan the provided ServletContext and classloader for JAR files.
-