| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static class | ServletContextImpl.
This is a bit of a hack to make sure than an invalidated session ID is not re-used. |
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap | |
| private final LRUCache | |
| private volatile int | |
| private volatile Set | |
| private final Deployment | |
| private volatile DeploymentInfo | |
| private int | |
| private int | |
| private volatile boolean | |
| private volatile ThreadSetupHandler. | |
| private volatile ThreadSetupHandler. | |
| private volatile ThreadSetupHandler. | |
| private volatile ThreadSetupHandler. | |
| private volatile ThreadSetupHandler. | |
| private final ServletContainer | |
| private final AttachmentKey | |
| private volatile SessionConfig | |
| private final SessionCookieConfigImpl | |
| private volatile Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public FilterRegistration. | addFilter(final String
the name of the filter filterName, final String the fully qualified class name of the filter className)Implements jakarta. Adds the filter with the given name and class name to this servlet context. |
| public FilterRegistration. | addFilter(final String
the name of the filter filterName, final Filter the filter instance to register filter)Implements jakarta. Registers the given filter instance with this ServletContext under the given filterName. |
| public FilterRegistration. | addFilter(final String
the name of the filter filterName, final Class<? extends Filter> the class object from which the filter will be instantiated filterClass)Implements jakarta. Adds the filter with the given name and class type to this servlet context. |
| public ServletRegistration. | addJspFile(String
the name of the servlet servletName, String the full path to a JSP file within the web application beginning with a `/'. jspFile)Implements jakarta. Adds the servlet with the given jsp file to this servlet context. |
| public void | addListener(final String
the fully qualified class name of the listener className)Implements jakarta. Adds the listener with the given class name to this ServletContext. |
| public <T extends EventListener> void | addListener(final T
the listener to be added t)Implements jakarta. Adds the given listener to this ServletContext. |
| public void | addListener(final Class<? extends EventListener>
the listener class to be instantiated listenerClass)Implements jakarta. Adds a listener of the given class type to this ServletContext. |
| pack-priv void | addMappingForServletNames(FilterInfo filterInfo, final EnumSet<DispatcherType> dispatcherTypes, final boolean isMatchAfter, final String... servletNames)
|
| pack-priv void | addMappingForUrlPatterns(FilterInfo filterInfo, final EnumSet<DispatcherType> dispatcherTypes, final boolean isMatchAfter, final String... urlPatterns)
|
| public ServletRegistration. | addServlet(final String
the name of the servlet servletName, final String the fully qualified class name of the servlet className)Implements jakarta. Adds the servlet with the given name and class name to this servlet context. |
| public ServletRegistration. | |
| public ServletRegistration. | addServlet(final String
the name of the servlet servletName, final Servlet the servlet instance to register servlet)Implements jakarta. Registers the given servlet instance with this ServletContext under the given servletName. |
| public ServletRegistration. | addServlet(final String
the name of the servlet servletName, final Class<? extends Servlet> the class object from which the servlet will be instantiated servletClass)Implements jakarta. Adds the servlet with the given name and class type to this servlet context. |
| public <T extends Filter> T | createFilter(final Class<T>
the Filter class to instantiate clazz)Implements jakarta. Instantiates the given Filter class. |
| public <T extends EventListener> T | createListener(final Class<T>
the EventListener class to instantiate clazz)Implements jakarta. Instantiates the given EventListener class. |
| public <T extends Servlet> T | createServlet(final Class<T>
the Servlet class to instantiate clazz)Implements jakarta. Instantiates the given Servlet class. |
| public void | declareRoles(final String...
the role names being declared roleNames)Implements jakarta. Declares role names that are tested using |
| public void | |
| private void | |
| private void | |
| private void | |
| public Object | getAttribute(final String
a name)String specifying the name of the attributeImplements jakarta. Returns the servlet container attribute with the given name, or |
| public Enumeration | getAttributeNames()
Implements jakarta. Returns an |
| public ClassLoader | getClassLoader()
Implements jakarta. Gets the class loader of the web application represented by this ServletContext. |
| public ServletContext | getContext(final String
a uripath)String specifying the context path of another web application in the container.Implements jakarta. Returns a |
| public String | getContextPath()
Implements jakarta. Returns the context path of the web application. |
| public Set | getDefaultSessionTrackingModes()
Implements jakarta. Gets the session tracking modes that are supported by default for this ServletContext. |
| public Deployment | |
| private DeploymentInfo | |
| public int | getEffectiveMajorVersion()
Implements jakarta. Gets the major version of the Servlet specification that the application represented by this ServletContext is based on. |
| public int | getEffectiveMinorVersion()
Implements jakarta. Gets the minor version of the Servlet specification that the application represented by this ServletContext is based on. |
| public Set | getEffectiveSessionTrackingModes()
Implements jakarta. Gets the session tracking modes that are in effect for this ServletContext. |
| public FilterRegistration | getFilterRegistration(final String
the name of a filter filterName)Implements jakarta. Gets the FilterRegistration corresponding to the filter with the given filterName. |
| public Map | getFilterRegistrations()
Implements jakarta. Gets a (possibly empty) Map of the FilterRegistration objects (keyed by filter name) corresponding to all filters registered with this ServletContext. |
| public String | getInitParameter(final String
a name)String containing the name of the parameter whose value is requestedImplements jakarta. Returns a |
| public Enumeration | getInitParameterNames()
Implements jakarta. Returns the names of the context's initialization parameters as an |
| public JspConfigDescriptor | getJspConfigDescriptor()
Implements jakarta. Gets the |
| public int | getMajorVersion()
Implements jakarta. Returns the major version of Jakarta Servlet specification that this container supports. |
| public String | getMimeType(final String
a file)String specifying the name of a fileImplements jakarta. Returns the MIME type of the specified file, or |
| public int | getMinorVersion()
Implements jakarta. Returns the minor version of Jakarta Servlet specification that this container supports. |
| public RequestDispatcher | getNamedDispatcher(final String
a name)String specifying the name of a servlet to wrapImplements jakarta. Returns a |
| public String | getRealPath(final String
the virtual path to be translated to a real path path)Implements jakarta. Gets the real path corresponding to the given virtual path. |
| public String | getRequestCharacterEncoding()
Implements jakarta. Gets the request character encoding that are supported by default for this ServletContext. |
| public RequestDispatcher | getRequestDispatcher(final String
a path)String specifying the pathname to the resourceImplements jakarta. Returns a |
| public URL | getResource(final String
a path)String specifying the path to the resourceImplements jakarta. Returns a URL to the resource that is mapped to the given path. |
| public InputStream | getResourceAsStream(final String
a path)String specifying the path to the resourceImplements jakarta. Returns the resource located at the named path as an |
| public Set | getResourcePaths(final String
the partial path used to match the resources, which must start with a / path)Implements jakarta. Returns a directory-like listing of all the paths to resources within the web application whose longest sub-path matches the supplied path argument. |
| public String | getResponseCharacterEncoding()
Implements jakarta. Gets the response character encoding that are supported by default for this ServletContext. |
| public String | getServerInfo()
Implements jakarta. Returns the name and version of the servlet container on which the servlet is running. |
| public String | getServletContextName()
Implements jakarta. Returns the name of this web application corresponding to this ServletContext as specified in the deployment descriptor for this web application by the display-name element. |
| public ServletRegistration | getServletRegistration(final String
the name of a servlet servletName)Implements jakarta. Gets the ServletRegistration corresponding to the servlet with the given servletName. |
| public Map | getServletRegistrations()
Implements jakarta. Gets a (possibly empty) Map of the ServletRegistration objects (keyed by servlet name) corresponding to all servlets registered with this ServletContext. |
| public HttpSessionImpl | Returns: The sessionThe session ID sessionId)Gets the session with the specified ID if it exists |
| public HttpSessionImpl | getSession(final ServletContextImpl originalServletContext, final HttpServerExchange exchange, boolean create)
|
| public HttpSessionImpl | |
| public SessionConfig | |
| public SessionCookieConfigImpl | getSessionCookieConfig()
Implements jakarta. Gets the |
| public int | getSessionTimeout()
Implements jakarta. Gets the session timeout in minutes that are supported by default for this ServletContext. |
| public String | getVirtualServerName()
Implements jakarta. Returns the configuration name of the logical host on which the ServletContext is deployed. |
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| public void | log(final String
a msg)String specifying the message to be written to the log fileImplements jakarta. Writes the specified message to a servlet log file, usually an event log. |
| public void | log(final String
a message, final Throwable String that describes the error or exceptionthe throwable)Throwable error or exceptionImplements jakarta. Writes an explanatory message and a stack trace for a given |
| pack-priv ContentTypeInfo | |
| private void | |
| public void | removeAttribute(final String
a name)String specifying the name of the attribute to be removedImplements jakarta. Removes the attribute with the given name from this ServletContext. |
| public void | setAttribute(final String
a name, final Object String specifying the name of the attributean object)Object representing the attribute to be boundImplements jakarta. Binds an object to a given attribute name in this ServletContext. |
| public void | |
| public boolean | setInitParameter(final String
the name of the context initialization parameter to set name, final String the value of the context initialization parameter to set value)Implements jakarta. Sets the context initialization parameter with the given name and value on this ServletContext. |
| public void | setRequestCharacterEncoding(String
request character encoding encoding)Implements jakarta. Sets the request character encoding for this ServletContext. |
| public void | setResponseCharacterEncoding(String
response character encoding encoding)Implements jakarta. Sets the response character encoding for this ServletContext. |
| public void | setSessionTimeout(int
session timeout in minutes sessionTimeout)Implements jakarta. Sets the session timeout in minutes for this ServletContext. |
| public void | setSessionTrackingModes(final Set<SessionTrackingMode>
the set of session tracking modes to become effective for this ServletContext sessionTrackingModes)Implements jakarta. Sets the session tracking modes that are to become effective for this ServletContext. |
| public void |