Class ActionServlet

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class ActionServlet
    extends org.apache.struts.action.ActionServlet
    Overwritten ActionServlet, loads struts-config.xml also for enabled plugins.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  ActionServlet.Action
      Annotation for marking action classes.
    • Field Summary

      • Fields inherited from class org.apache.struts.action.ActionServlet

        chainConfig, config, configDigester, convertNull, internal, internalName, registrations, servletMapping, servletName
    • Constructor Summary

      Constructors 
      Constructor Description
      ActionServlet()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getActionPath​(java.lang.Class<? extends org.apache.struts.actions.BaseAction> clazz)
      Selects an action's path, declared in annotation ActionServlet.Action.
      void init()  
      protected org.apache.struts.config.ModuleConfig initModuleConfig​(java.lang.String prefix, java.lang.String paths)
      Loads annotated actions.
      • Methods inherited from class org.apache.struts.action.ActionServlet

        addServletMapping, destroy, destroyConfigDigester, destroyInternal, destroyModules, doGet, doPost, getInternal, getModuleConfig, getRequestProcessor, initChain, initConfigDigester, initInternal, initModuleActions, initModuleConfigFactory, initModuleExceptionConfigs, initModuleFormBeans, initModuleForwards, initModuleMessageResources, initModulePlugIns, initModulePrefixes, initOther, initServlet, parseModuleConfigFile, parseModuleConfigFile, process, processActionConfigClass, processActionConfigExtension, processExceptionConfigClass, processExceptionExtension, processFormBeanConfigClass, processFormBeanExtension, processForwardConfigClass, processForwardExtension, splitAndResolvePaths
      • 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
    • Constructor Detail

      • ActionServlet

        public ActionServlet()
    • Method Detail

      • init

        public void init()
                  throws javax.servlet.ServletException
        Overrides:
        init in class org.apache.struts.action.ActionServlet
        Throws:
        javax.servlet.ServletException
      • initModuleConfig

        protected org.apache.struts.config.ModuleConfig initModuleConfig​(java.lang.String prefix,
                                                                         java.lang.String paths)
                                                                  throws javax.servlet.ServletException
        Loads annotated actions.
        Overrides:
        initModuleConfig in class org.apache.struts.action.ActionServlet
        Throws:
        javax.servlet.ServletException
      • getActionPath

        public static java.lang.String getActionPath​(java.lang.Class<? extends org.apache.struts.actions.BaseAction> clazz)
        Selects an action's path, declared in annotation ActionServlet.Action.
        Parameters:
        clazz - the action class.
        Returns:
        string from the class annotation.
        Throws:
        java.lang.IllegalArgumentException - if no annotation defined.