Class ReplicatedContext.ReplApplContext
java.lang.Object
org.apache.catalina.core.ApplicationContext
org.apache.catalina.ha.context.ReplicatedContext.ReplApplContext
-
Field Summary
FieldsFields inherited from class org.apache.catalina.core.ApplicationContext
attributesFields inherited from interface jakarta.servlet.ServletContext
ORDERED_LIBS, TEMPDIR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Returns the servlet container attribute with the given name, ornullif there is no attribute by that name.Returns anEnumerationcontaining the attribute names available within this servlet context.protected ServletContextprotected ReplicatedContextvoidremoveAttribute(String name) Removes the attribute with the given name from the servlet context.voidsetAttribute(String name, Object value) Binds an object to a given attribute name in this servlet context.voidsetAttributeMap(Map<String, Object> map) Methods inherited from class org.apache.catalina.core.ApplicationContext
addFilter, addFilter, addFilter, addJspFile, addListener, addListener, addListener, addServlet, addServlet, addServlet, clearAttributes, createFilter, createListener, createServlet, declareRoles, getClassLoader, getContext, getContext, getContextPath, getDefaultSessionTrackingModes, getEffectiveMajorVersion, getEffectiveMinorVersion, getEffectiveSessionTrackingModes, getFilterRegistration, getFilterRegistrations, getInitParameter, getInitParameterNames, getJspConfigDescriptor, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getRealPath, getRequestCharacterEncoding, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getResponseCharacterEncoding, getServerInfo, getServletContextName, getServletRegistration, getServletRegistrations, getSessionCookieConfig, getSessionTimeout, getVirtualServerName, log, log, setInitParameter, setNewServletContextListenerAllowed, setRequestCharacterEncoding, setResponseCharacterEncoding, setSessionTimeout, setSessionTrackingModes
-
Field Details
-
tomcatAttributes
-
-
Constructor Details
-
ReplApplContext
-
-
Method Details
-
getParent
-
getFacade
- Overrides:
getFacadein classApplicationContext- Returns:
- the facade associated with this ApplicationContext.
-
getAttributeMap
-
setAttributeMap
-
removeAttribute
Description copied from interface:jakarta.servlet.ServletContextRemoves the attribute with the given name from the servlet context. After removal, subsequent calls toServletContext.getAttribute(java.lang.String)to retrieve the attribute's value will returnnull.If listeners are configured on the
ServletContextthe container notifies them accordingly.- Specified by:
removeAttributein interfaceServletContext- Overrides:
removeAttributein classApplicationContext- Parameters:
name- aStringspecifying the name of the attribute to be removed
-
setAttribute
Description copied from interface:jakarta.servlet.ServletContextBinds an object to a given attribute name in this servlet context. If the name specified is already used for an attribute, this method will replace the attribute with the new to the new attribute.If listeners are configured on the
ServletContextthe container notifies them accordingly.If a null value is passed, the effect is the same as calling
removeAttribute().Attribute names should follow the same convention as package names. The Jakarta EE platform reserves names matching
jakarta.*.- Specified by:
setAttributein interfaceServletContext- Overrides:
setAttributein classApplicationContext- Parameters:
name- aStringspecifying the name of the attributevalue- anObjectrepresenting the attribute to be bound
-
getAttribute
Description copied from interface:jakarta.servlet.ServletContextReturns the servlet container attribute with the given name, ornullif there is no attribute by that name. An attribute allows a servlet container to give the servlet additional information not already provided by this interface. See your server documentation for information about its attributes. A list of supported attributes can be retrieved usinggetAttributeNames.The attribute is returned as a
java.lang.Objector some subclass. Attribute names should follow the same convention as package names. The Jakarta EE platform reserves names matchingjakarta.*.- Specified by:
getAttributein interfaceServletContext- Overrides:
getAttributein classApplicationContext- Parameters:
name- aStringspecifying the name of the attribute- Returns:
- an
Objectcontaining the value of the attribute, ornullif no attribute exists matching the given name - See Also:
-
getAttributeNames
Description copied from interface:jakarta.servlet.ServletContextReturns anEnumerationcontaining the attribute names available within this servlet context. Use theServletContext.getAttribute(java.lang.String)method with an attribute name to get the value of an attribute.- Specified by:
getAttributeNamesin interfaceServletContext- Overrides:
getAttributeNamesin classApplicationContext- Returns:
- an
Enumerationof attribute names - See Also:
-