Package ru.bgcrm.servlet
Class ActionServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.struts.action.ActionServlet
ru.bgcrm.servlet.ActionServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class ActionServlet
extends org.apache.struts.action.ActionServlet
Overwritten ActionServlet, loads actions for enabled plugins.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getActionPath
(Class<? extends org.apache.struts.actions.BaseAction> clazz) Selects an action's path, declared in annotationActionServlet.Action
.protected org.apache.struts.config.ModuleConfig
initModuleConfig
(String prefix, String paths) Loads annotated actions.Methods inherited from class org.apache.struts.action.ActionServlet
addServletMapping, destroy, destroyConfigDigester, destroyInternal, destroyModules, doGet, doPost, getInternal, getModuleConfig, getRequestProcessor, init, 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
-
Constructor Details
-
ActionServlet
public ActionServlet()
-
-
Method Details
-
getActionPath
Selects an action's path, declared in annotationActionServlet.Action
.- Parameters:
clazz
- the action class.- Returns:
- string from the class annotation.
- Throws:
IllegalArgumentException
- if no annotation defined.
-
initModuleConfig
protected org.apache.struts.config.ModuleConfig initModuleConfig(String prefix, String paths) throws javax.servlet.ServletException Loads annotated actions.- Overrides:
initModuleConfig
in classorg.apache.struts.action.ActionServlet
- Throws:
javax.servlet.ServletException
-