org.apache.catalina.ha.context
Class ReplicatedContext.ReplApplContext
java.lang.Object
   org.apache.catalina.core.ApplicationContext
org.apache.catalina.core.ApplicationContext
       org.apache.catalina.ha.context.ReplicatedContext.ReplApplContext
org.apache.catalina.ha.context.ReplicatedContext.ReplApplContext
- All Implemented Interfaces: 
- javax.servlet.ServletContext
- Enclosing class:
- ReplicatedContext
- protected static class ReplicatedContext.ReplApplContext 
- extends ApplicationContext
| Field Summary | 
| protected  java.util.Map<java.lang.String,java.lang.Object> | tomcatAttributes
 | 
 
 
 
| Method Summary | 
|  java.lang.Object | getAttribute(java.lang.String name)Return the value of the specified context attribute, if any;
 otherwise return
 null. | 
|  java.util.Map<java.lang.String,java.lang.Object> | 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.Map<java.lang.String,java.lang.Object> map)
 | 
 
| Methods inherited from class org.apache.catalina.core.ApplicationContext | 
| 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, setInitParameter | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
tomcatAttributes
protected final java.util.Map<java.lang.String,java.lang.Object> tomcatAttributes
ReplicatedContext.ReplApplContext
public ReplicatedContext.ReplApplContext(java.lang.String basePath,
                                         ReplicatedContext context)
getParent
protected ReplicatedContext getParent()
- 
 
getFacade
protected javax.servlet.ServletContext getFacade()
- Description copied from class: ApplicationContext
- Return the facade associated with this ApplicationContext.
 
- 
- Overrides:
- getFacadein class- ApplicationContext
 
- 
 
getAttributeMap
public java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
- 
 
setAttributeMap
public void setAttributeMap(java.util.Map<java.lang.String,java.lang.Object> map)
- 
 
removeAttribute
public void removeAttribute(java.lang.String name)
- Description copied from class: ApplicationContext
- Remove the context attribute with the specified name, if any.
 
- 
- Specified by:
- removeAttributein interface- javax.servlet.ServletContext
- Overrides:
- removeAttributein class- ApplicationContext
 
- 
- Parameters:
- name- Name of the context attribute to be removed
 
setAttribute
public void setAttribute(java.lang.String name,
                         java.lang.Object value)
- Description copied from class: ApplicationContext
- Bind the specified value with the specified context attribute name,
 replacing any existing value for that name.
 
- 
- Specified by:
- setAttributein interface- javax.servlet.ServletContext
- Overrides:
- setAttributein class- ApplicationContext
 
- 
- Parameters:
- name- Attribute name to be bound
- value- New attribute value to be bound
 
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Description copied from class: ApplicationContext
- Return the value of the specified context attribute, if any;
 otherwise return null.
 
- 
- Specified by:
- getAttributein interface- javax.servlet.ServletContext
- Overrides:
- getAttributein class- ApplicationContext
 
- 
- Parameters:
- name- Name of the context attribute to return
- Returns:
- an Objectcontaining the value
                        of the attribute, ornullif no attribute exists matching the given
                        name
- See Also:
- ServletContext.getAttributeNames()
 
getAttributeNames
public java.util.Enumeration getAttributeNames()
- Description copied from class: ApplicationContext
- Return an enumeration of the names of the context attributes
 associated with this context.
 
- 
- Specified by:
- getAttributeNamesin interface- javax.servlet.ServletContext
- Overrides:
- getAttributeNamesin class- ApplicationContext
 
- 
- Returns:
- an Enumerationof attribute
                        names
- See Also:
- ServletContext.getAttribute(java.lang.String)
 
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.