java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.struts.action.ActionServlet
org.apache.webapp.admin.ApplicationServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class ApplicationServlet
- extends org.apache.struts.action.ActionServlet
Subclass of ActionServlet that adds caching of the supported locales in the
ApplicationLocales class.
- Version:
- $Revision: 302726 $ $Date: 2004-02-27 09:59:07 -0500 (Fri, 27 Feb 2004) $
| Fields inherited from class org.apache.struts.action.ActionServlet |
config, configDigester, convertNull, dataSources, internal, internalName, log, processor, registrations, servletMapping, servletName |
| Fields inherited from class javax.servlet.http.HttpServlet |
|
|
Method Summary |
org.apache.commons.modeler.Registry |
getRegistry()
Convenience method to make the managed beans Registry available. |
javax.management.MBeanServer |
getServer()
Convenience method to make the JMX MBeanServer available. |
void |
init()
Initialize this servlet. |
protected void |
initApplicationLocales()
Create and initialize the ApplicationLocales object, and make it
available as a servlet context attribute. |
protected void |
initRegistry()
Validate the existence of the Registry that should have been
provided to us by an instance of
org.apache.catalina.mbean.ServerLifecycleListener
enabled at startup time. |
protected void |
initServer()
Validate the existence of the MBeanServer that should have been
provided to us by an instance of
org.apache.catalina.mbean.ServerLifecycleListener
enabled at startup time. |
| Methods inherited from class org.apache.struts.action.ActionServlet |
addServletMapping, destroy, destroyConfigDigester, destroyInternal, destroyModules, doGet, doPost, getInternal, getModuleConfig, getRequestProcessor, initConfigDigester, initInternal, initModuleConfig, initModuleConfigFactory, initModuleDataSources, initModuleMessageResources, initModulePlugIns, initModulePrefixes, initOther, initServlet, parseModuleConfigFile, process |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCALES_KEY
public static final java.lang.String LOCALES_KEY
- The application scope key under which we store our
ApplicationLocales instance.
- See Also:
- Constant Field Values
registry
protected org.apache.commons.modeler.Registry registry
- The managed beans Registry used to look up metadata.
server
protected javax.management.MBeanServer server
- The JMX MBeanServer we will use to look up management beans.
ApplicationServlet
public ApplicationServlet()
getRegistry
public org.apache.commons.modeler.Registry getRegistry()
throws javax.servlet.ServletException
- Convenience method to make the managed beans Registry available.
getServer
public javax.management.MBeanServer getServer()
throws javax.servlet.ServletException
- Convenience method to make the JMX MBeanServer available.
init
public void init()
throws javax.servlet.ServletException
- Initialize this servlet.
initApplicationLocales
protected void initApplicationLocales()
- Create and initialize the ApplicationLocales object, and make it
available as a servlet context attribute.
initRegistry
protected void initRegistry()
throws javax.servlet.ServletException
- Validate the existence of the Registry that should have been
provided to us by an instance of
org.apache.catalina.mbean.ServerLifecycleListener
enabled at startup time.
initServer
protected void initServer()
throws javax.servlet.ServletException
- Validate the existence of the MBeanServer that should have been
provided to us by an instance of
org.apache.catalina.mbean.ServerLifecycleListener
enabled at startup time.