Package org.apache.catalina.ha.context
Class ReplicatedContext.ReplApplContext
- java.lang.Object
- 
- org.apache.catalina.core.ApplicationContext
- 
- org.apache.catalina.ha.context.ReplicatedContext.ReplApplContext
 
 
- 
- All Implemented Interfaces:
- ServletContext
 - Enclosing class:
- ReplicatedContext
 
 protected static class ReplicatedContext.ReplApplContext extends ApplicationContext 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.Object>tomcatAttributes- 
Fields inherited from class org.apache.catalina.core.ApplicationContextattributes, GET_RESOURCE_REQUIRE_SLASH, STRICT_SERVLET_COMPLIANCE
 - 
Fields inherited from interface javax.servlet.ServletContextORDERED_LIBS, TEMPDIR
 
- 
 - 
Constructor SummaryConstructors Constructor Description ReplApplContext(ReplicatedContext context)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetAttribute(java.lang.String name)Returns the servlet container attribute with the given name, ornullif 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 anEnumerationcontaining the attribute names available within this servlet context.protected ServletContextgetFacade()protected ReplicatedContextgetParent()voidremoveAttribute(java.lang.String name)Removes the attribute with the given name from the servlet context.voidsetAttribute(java.lang.String name, java.lang.Object value)Binds an object to a given attribute name in this servlet context.voidsetAttributeMap(java.util.Map<java.lang.String,java.lang.Object> map)- 
Methods inherited from class org.apache.catalina.core.ApplicationContextaddFilter, 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, getServlet, getServletContextName, getServletNames, getServletRegistration, getServletRegistrations, getServlets, getSessionCookieConfig, getSessionTimeout, getVirtualServerName, log, log, log, setInitParameter, setNewServletContextListenerAllowed, setRequestCharacterEncoding, setResponseCharacterEncoding, setSessionTimeout, setSessionTrackingModes
 
- 
 
- 
- 
- 
Constructor Detail- 
ReplApplContextpublic ReplApplContext(ReplicatedContext context) 
 
- 
 - 
Method Detail- 
getParentprotected ReplicatedContext getParent() 
 - 
getFacadeprotected ServletContext getFacade() - Overrides:
- getFacadein class- ApplicationContext
- Returns:
- the facade associated with this ApplicationContext.
 
 - 
getAttributeMappublic java.util.Map<java.lang.String,java.lang.Object> getAttributeMap() 
 - 
setAttributeMappublic void setAttributeMap(java.util.Map<java.lang.String,java.lang.Object> map) 
 - 
removeAttributepublic void removeAttribute(java.lang.String name) Description copied from interface:javax.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 interface- ServletContext
- Overrides:
- removeAttributein class- ApplicationContext
- Parameters:
- name- a- Stringspecifying the name of the attribute to be removed
 
 - 
setAttributepublic void setAttribute(java.lang.String name, java.lang.Object value)Description copied from interface:javax.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 Java Servlet API specification reserves names matching java.*,javax.*, andsun.*.- Specified by:
- setAttributein interface- ServletContext
- Overrides:
- setAttributein class- ApplicationContext
- Parameters:
- name- a- Stringspecifying the name of the attribute
- value- an- Objectrepresenting the attribute to be bound
 
 - 
getAttributepublic java.lang.Object getAttribute(java.lang.String name) Description copied from interface:javax.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 Java Servlet API specification reserves names matchingjava.*,javax.*, andsun.*.- Specified by:
- getAttributein interface- ServletContext
- Overrides:
- getAttributein class- ApplicationContext
- Parameters:
- name- a- Stringspecifying the name of the attribute
- Returns:
- an Objectcontaining the value of the attribute, ornullif no attribute exists matching the given name
- See Also:
- ServletContext.getAttributeNames()
 
 - 
getAttributeNamespublic java.util.Enumeration<java.lang.String> getAttributeNames() Description copied from interface:javax.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 interface- ServletContext
- Overrides:
- getAttributeNamesin class- ApplicationContext
- Returns:
- an Enumerationof attribute names
- See Also:
- ServletContext.getAttribute(java.lang.String)
 
 
- 
 
-