protected static class ReplicatedContext.ReplApplContext extends ApplicationContext
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
tomcatAttributes |
attributes, GET_RESOURCE_REQUIRE_SLASH, STRICT_SERVLET_COMPLIANCEORDERED_LIBS, TEMPDIR| Constructor and Description |
|---|
ReplicatedContext.ReplApplContext(ReplicatedContext context) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the servlet container attribute with the given name, or
null if there is no attribute by that name. |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributeMap() |
java.util.Enumeration<java.lang.String> |
getAttributeNames()
Returns an
Enumeration containing the attribute names
available within this servlet context. |
protected ServletContext |
getFacade() |
protected ReplicatedContext |
getParent() |
void |
removeAttribute(java.lang.String name)
Removes the attribute with the given name from the servlet context.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Binds an object to a given attribute name in this servlet context.
|
void |
setAttributeMap(java.util.Map<java.lang.String,java.lang.Object> map) |
addFilter, addFilter, addFilter, 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, getReadonlyAttributes, getRealPath, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getResources, getServerInfo, getServlet, getServletContextName, getServletNames, getServletRegistration, getServletRegistrations, getServlets, getSessionCookieConfig, log, log, log, setInitParameter, setNewServletContextListenerAllowed, setSessionTrackingModesprotected final java.util.Map<java.lang.String,java.lang.Object> tomcatAttributes
public ReplicatedContext.ReplApplContext(ReplicatedContext context)
protected ReplicatedContext getParent()
protected ServletContext getFacade()
getFacade in class ApplicationContextpublic java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
public void setAttributeMap(java.util.Map<java.lang.String,java.lang.Object> map)
public void removeAttribute(java.lang.String name)
javax.servlet.ServletContextServletContext.getAttribute(java.lang.String) to retrieve the
attribute's value will return null.
If listeners are configured on the ServletContext the
container notifies them accordingly.
removeAttribute in interface ServletContextremoveAttribute in class ApplicationContextname - a String specifying the name of the attribute to
be removedpublic void setAttribute(java.lang.String name,
java.lang.Object value)
javax.servlet.ServletContext
If listeners are configured on the ServletContext the
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
Java Servlet API specification reserves names matching
java.*, javax.*, and sun.*.
setAttribute in interface ServletContextsetAttribute in class ApplicationContextname - a String specifying the name of the attributevalue - an Object representing the attribute to be boundpublic java.lang.Object getAttribute(java.lang.String name)
javax.servlet.ServletContextnull if 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 using getAttributeNames.
The attribute is returned as a java.lang.Object or some
subclass. Attribute names should follow the same convention as package
names. The Java Servlet API specification reserves names matching
java.*, javax.*, and sun.*.
getAttribute in interface ServletContextgetAttribute in class ApplicationContextname - a String specifying the name of the attributeObject containing the value of the attribute, or
null if no attribute exists matching the given nameServletContext.getAttributeNames()public java.util.Enumeration<java.lang.String> getAttributeNames()
javax.servlet.ServletContextEnumeration containing the attribute names
available within this servlet context. Use the ServletContext.getAttribute(java.lang.String)
method with an attribute name to get the value of an attribute.getAttributeNames in interface ServletContextgetAttributeNames in class ApplicationContextEnumeration of attribute namesServletContext.getAttribute(java.lang.String)Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.