Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.webapp.admin
Class ApplicationServlet  view ApplicationServlet download ApplicationServlet.java

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.struts.action.ActionServlet
              extended byorg.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) $

Field Summary
static java.lang.String LOCALES_KEY
          The application scope key under which we store our ApplicationLocales instance.
protected  org.apache.commons.modeler.Registry registry
          The managed beans Registry used to look up metadata.
protected  javax.management.MBeanServer server
          The JMX MBeanServer we will use to look up management beans.
 
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
 
Constructor Summary
ApplicationServlet()
           
 
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 javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

ApplicationServlet

public ApplicationServlet()
Method Detail

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.