Uses of Interface
jakarta.servlet.ServletContext
Package
Description
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.
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.
Classes and interfaces related to the core tag library component of the Jakarta Standard Tag Library.
-
Uses of ServletContext in com.sun.faces.application
Modifier and TypeMethodDescriptionstatic void
ApplicationAssociate.clearInstance
(ServletContext servletContext) static ApplicationAssociate
ApplicationAssociate.getInstance
(ServletContext context) -
Uses of ServletContext in com.sun.faces.config
Modifier and TypeMethodDescriptionstatic void
FacesInitializer.addAnnotatedClasses
(Set<Class<?>> classes, ServletContext servletContext) void
InitFacesContext.addServletContextEntryForInitContext
(ServletContext servletContext) static void
InitFacesContext.cleanupInitMaps
(ServletContext servletContext) Clean up entries from the threadInitContext and initContextServletContext maps using a ServletContext.static ConfigManager
ConfigManager.createInstance
(ServletContext servletContext) void
ConfigManager.destroy
(ServletContext servletContext, FacesContext facesContext) This method will remove any information about the application.static ConfigManager
ConfigManager.getInstance
(ServletContext servletContext) static InitFacesContext
InitFacesContext.getInstance
(ServletContext servletContext) static WebConfiguration
WebConfiguration.getInstance
(ServletContext servletContext) Return the WebConfiguration instance for this application.static WebConfiguration
WebConfiguration.getInstanceWithoutCreating
(ServletContext servletContext) boolean
ConfigManager.hasBeenInitialized
(ServletContext servletContext) void
ConfigManager.initialize
(ServletContext servletContext, InitFacesContext facesContext) This method bootstraps Faces based on the parsed configuration resources.void
FacesInitializer.onStartup
(Set<Class<?>> classes, ServletContext servletContext) void
FacesInitializer2.onStartup
(Set<Class<?>> classes, ServletContext servletContext) void
InitFacesContext.reInitializeExternalContext
(ServletContext sc) static void
ConfigManager.removeInstance
(ServletContext servletContext) -
Uses of ServletContext in com.sun.faces.config.configprovider
Modifier and TypeMethodDescriptionprotected URI
BaseWebConfigResourceProvider.getContextURLForPath
(ServletContext context, String path) BaseWebConfigResourceProvider.getResources
(ServletContext context) MetaInfFaceletTaglibraryConfigProvider.getResources
(ServletContext context) MetaInfFacesConfigResourceProvider.getResources
(ServletContext context) WebAppFlowConfigResourceProvider.getResources
(ServletContext context) WebFacesConfigResourceProvider.getResources
(ServletContext context) -
Uses of ServletContext in com.sun.faces.config.initfacescontext
-
Uses of ServletContext in com.sun.faces.config.manager
Modifier and TypeMethodDescriptionstatic Schema
DbfFactory.getSchema
(ServletContext servletContext, FacesSchema schemaId) Get the schema for the given schema id.static Schema
DbfFactory.getSchema
(ServletContext servletContext, String documentNS, String version, String localName) Get the schema for the given schema id.static DocumentInfo[]
Documents.getXMLDocuments
(ServletContext servletContext, List<ConfigurationResourceProvider> providers, ExecutorService executor, boolean validating) Obtains an array ofDocument
s to be processedstatic void
DbfFactory.removeSchemaMap
(ServletContext servletContext) Remove the schema map from the servlet context. -
Uses of ServletContext in com.sun.faces.config.manager.spi
ModifierConstructorDescriptionCreates a newAnnotationScanner
instance.FilterClassesFromFacesInitializerAnnotationProvider
(ServletContext servletContext) -
Uses of ServletContext in com.sun.faces.config.manager.tasks
ModifierConstructorDescriptionFindAnnotatedConfigClasses
(ServletContext servletContext, InitFacesContext facesContext, ProvideMetadataToAnnotationScanTask metadataGetter) FindConfigResourceURIsTask
(ConfigurationResourceProvider provider, ServletContext servletContext) Constructs a newURITask
instance.ParseConfigResourceToDOMTask
(ServletContext servletContext, boolean validating, URI documentURI) Constructs a new ParseTask instance -
Uses of ServletContext in com.sun.faces.config.processor
Modifier and TypeMethodDescriptionprotected Object
AbstractConfigProcessor.createInstance
(ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source) protected Object
AbstractConfigProcessor.createInstance
(ServletContext sc, FacesContext facesContext, String className, Class<?> rootType, Object root, Node source, boolean performInjection, boolean[] didPerformInjection) protected Object
AbstractConfigProcessor.createInstance
(ServletContext sc, FacesContext facesContext, String className, Node source) void
AbstractConfigProcessor.destroy
(ServletContext sc, FacesContext facesContext) void
ApplicationConfigProcessor.destroy
(ServletContext sc, FacesContext facesContext) void
ConfigProcessor.destroy
(ServletContext servletContext, FacesContext facesContext) void
LifecycleConfigProcessor.destroy
(ServletContext sc, FacesContext facesContext) protected void
AbstractConfigProcessor.destroyInstance
(ServletContext sc, FacesContext facesContext, String className, Object instance) protected Class
<?> AbstractConfigProcessor.findRootType
(ServletContext sc, FacesContext facesContext, String source, Node sourceNode, Class<?>[] ctorArguments) void
AbstractConfigProcessor.initializeClassMetadataMap
(ServletContext servletContext, FacesContext facesContext) void
ConfigProcessor.initializeClassMetadataMap
(ServletContext servletContext, FacesContext facesContext) Called to initialize the per-application metadata used by the ConfigProcessorprotected Class
<?> AbstractConfigProcessor.loadClass
(ServletContext sc, FacesContext facesContext, String className, Object fallback, Class<?> expectedType) void
ApplicationConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) void
BehaviorConfigProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
ComponentConfigProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
ConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) Process the array ofDocument
s.void
ConverterConfigProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
FaceletTaglibConfigProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
FacesConfigExtensionProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
FacesFlowDefinitionConfigProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
FactoryConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) void
LifecycleConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) void
NavigationConfigProcessor.process
(ServletContext sc, FacesContext facesContext, DocumentInfo[] documentInfos) void
ProtectedViewsConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) void
RenderKitConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) void
ResourceLibraryContractsConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) Process the configuration documents.void
ValidatorConfigProcessor.process
(ServletContext servletContext, FacesContext facesContext, DocumentInfo[] documentInfos) -
Uses of ServletContext in com.sun.faces.context
Modifier and TypeMethodDescriptionstatic Object
ContextParamUtils.getValue
(ServletContext servletContext, ContextParam contextParam) Get the value.static <T> T
ContextParamUtils.getValue
(ServletContext servletContext, ContextParam contextParam, Class<T> clazz) Get the value.ModifierConstructorDescriptionApplicationMap
(ServletContext servletContext) ExternalContextImpl
(ServletContext sc, ServletRequest request, ServletResponse response) InitParameterMap
(ServletContext newServletContext) -
Uses of ServletContext in com.sun.faces.spi
Modifier and TypeMethodDescriptionstatic AnnotationProvider
AnnotationProviderFactory.createAnnotationProvider
(ServletContext sc) void
HighAvailabilityEnabler.enableHighAvailability
(ServletContext ctx) AnnotationScanner.getAnnotatedClassesInCurrentModule
(ServletContext extContext) ConfigurationResourceProvider.getResources
(ServletContext context) -
Uses of ServletContext in com.sun.faces.util
Modifier and TypeMethodDescriptionstatic String[]
Util.split
(ServletContext sc, String toSplit, String regex) -
Uses of ServletContext in jakarta.servlet
Modifier and TypeMethodDescriptionServletContext.getContext
(String uripath) Returns aServletContext
object that corresponds to a specified URL on the server.FilterConfig.getServletContext()
Returns a reference to theServletContext
in which the caller is executing.GenericFilter.getServletContext()
Returns a reference to theServletContext
in which this filter is running.GenericServlet.getServletContext()
Returns a reference to theServletContext
in which this servlet is running.ServletConfig.getServletContext()
Returns a reference to theServletContext
in which the caller is executing.ServletContextEvent.getServletContext()
Return the ServletContext that changed.ServletRequest.getServletContext()
Gets the servlet context to which this ServletRequest was last dispatched.ServletRequestEvent.getServletContext()
Returns the ServletContext of this web application.ServletRequestWrapper.getServletContext()
Gets the servlet context to which the wrapped servlet request was last dispatched.Modifier and TypeMethodDescriptionvoid
AsyncContext.dispatch
(ServletContext context, String path) Dispatches the request and response objects of this AsyncContext to the given path scoped to the given context.void
ServletContainerInitializer.onStartup
(Set<Class<?>> c, ServletContext ctx) Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext.ModifierConstructorDescriptionServletContextAttributeEvent
(ServletContext source, String name, Object value) Constructs a ServletContextAttributeEvent from the given ServletContext, attribute name, and attribute value.ServletContextEvent
(ServletContext source) Construct a ServletContextEvent from the given context.ServletRequestAttributeEvent
(ServletContext sc, ServletRequest request, String name, 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
Modifier and TypeMethodDescriptionHttpSession.getServletContext()
Returns the ServletContext to which this session belongs. -
Uses of ServletContext in jakarta.servlet.jsp
Modifier and TypeMethodDescriptionabstract ServletContext
PageContext.getServletContext()
The ServletContext instance.Modifier and TypeMethodDescriptionabstract JspApplicationContext
JspFactory.getJspApplicationContext
(ServletContext context) Obtains theJspApplicationContext
instance associated with the web application for the givenServletContext
. -
Uses of ServletContext in jakarta.servlet.jsp.jstl.core
Modifier and TypeMethodDescriptionstatic Object
Config.get
(ServletContext context, String name) Looks up a configuration variable in the "application" scope.static void
Config.remove
(ServletContext context, String name) Removes a configuration variable from the "application" scope.static void
Config.set
(ServletContext context, String name, Object value) Sets the value of a configuration variable in the "application" scope.