org.apache.catalina.ha.context
protected static class ReplicatedContext.ReplApplContext extends ApplicationContext
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.ConcurrentHashMap |
tomcatAttributes |
attributes
Constructor and Description |
---|
ReplicatedContext.ReplApplContext(java.lang.String basePath,
ReplicatedContext context) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Return the value of the specified context attribute, if any;
otherwise return
null . |
java.util.AbstractMap |
getAttributeMap() |
java.util.Enumeration |
getAttributeNames()
Return an enumeration of the names of the context attributes
associated with this context.
|
protected javax.servlet.ServletContext |
getFacade()
Return the facade associated with this ApplicationContext.
|
protected ReplicatedContext |
getParent() |
void |
removeAttribute(java.lang.String name)
Remove the context attribute with the specified name, if any.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Bind the specified value with the specified context attribute name,
replacing any existing value for that name.
|
void |
setAttributeMap(java.util.AbstractMap map) |
clearAttributes, getContext, getContext, getContextPath, getInitParameter, getInitParameterNames, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getReadonlyAttributes, getRealPath, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getResources, getServerInfo, getServlet, getServletContextName, getServletNames, getServlets, log, log, log
public ReplicatedContext.ReplApplContext(java.lang.String basePath, ReplicatedContext context)
protected ReplicatedContext getParent()
protected javax.servlet.ServletContext getFacade()
ApplicationContext
getFacade
in class ApplicationContext
public java.util.AbstractMap getAttributeMap()
public void setAttributeMap(java.util.AbstractMap map)
public void removeAttribute(java.lang.String name)
ApplicationContext
removeAttribute
in interface javax.servlet.ServletContext
removeAttribute
in class ApplicationContext
name
- Name of the context attribute to be removedpublic void setAttribute(java.lang.String name, java.lang.Object value)
ApplicationContext
setAttribute
in interface javax.servlet.ServletContext
setAttribute
in class ApplicationContext
name
- Attribute name to be boundvalue
- New attribute value to be boundpublic java.lang.Object getAttribute(java.lang.String name)
ApplicationContext
null
.getAttribute
in interface javax.servlet.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 java.util.Enumeration getAttributeNames()
ApplicationContext
getAttributeNames
in interface javax.servlet.ServletContext
getAttributeNames
in class ApplicationContext
Enumeration
of attribute
namesServletContext.getAttribute(java.lang.String)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.