protected static class ReplicatedContext.ReplApplContext extends ApplicationContext
Modifier and Type | Field and Description |
---|---|
protected ConcurrentHashMap<String,Object> |
tomcatAttributes |
attributes, GET_RESOURCE_REQUIRE_SLASH, STRICT_SERVLET_COMPLIANCE
ORDERED_LIBS, TEMPDIR
Constructor and Description |
---|
ReplicatedContext.ReplApplContext(ReplicatedContext context) |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name)
Return the value of the specified context attribute, if any;
otherwise return
null . |
Map<String,Object> |
getAttributeMap() |
Enumeration<String> |
getAttributeNames()
Return an enumeration of the names of the context attributes
associated with this context.
|
protected ServletContext |
getFacade()
Return the facade associated with this ApplicationContext.
|
protected ReplicatedContext |
getParent() |
void |
removeAttribute(String name)
Remove the context attribute with the specified name, if any.
|
void |
setAttribute(String name,
Object value)
Bind the specified value with the specified context attribute name,
replacing any existing value for that name.
|
void |
setAttributeMap(Map<String,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, getRealPath, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getServerInfo, getServlet, getServletContextName, getServletNames, getServletRegistration, getServletRegistrations, getServlets, getSessionCookieConfig, getVirtualServerName, log, log, log, setInitParameter, setNewServletContextListenerAllowed, setSessionTrackingModes
protected final ConcurrentHashMap<String,Object> tomcatAttributes
public ReplicatedContext.ReplApplContext(ReplicatedContext context)
protected ReplicatedContext getParent()
protected ServletContext getFacade()
ApplicationContext
getFacade
in class ApplicationContext
public void removeAttribute(String name)
ApplicationContext
removeAttribute
in interface ServletContext
removeAttribute
in class ApplicationContext
name
- Name of the context attribute to be removedpublic void setAttribute(String name, Object value)
ApplicationContext
setAttribute
in interface ServletContext
setAttribute
in class ApplicationContext
name
- Attribute name to be boundvalue
- New attribute value to be boundpublic Object getAttribute(String name)
ApplicationContext
null
.getAttribute
in interface ServletContext
getAttribute
in class ApplicationContext
name
- Name of the context attribute to returnObject
containing the value of the attribute, or
null
if no attribute exists matching the given nameServletContext.getAttributeNames()
public Enumeration<String> getAttributeNames()
ApplicationContext
getAttributeNames
in interface ServletContext
getAttributeNames
in class ApplicationContext
Enumeration
of attribute namesServletContext.getAttribute(java.lang.String)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.