Class JiraWebworkActionDispatcher
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
- Direct Known Subclasses:
DisplayErrorServlet
public class JiraWebworkActionDispatcher
extends jakarta.servlet.http.HttpServlet
This is the servlet that invokes WebWork actions and then dispatches to their appropriate view.
This servlet is one of the key planks of JIRA architecture.
This code was copied from the webwork ServletDispatcher originally and has since diverted some what for JIRA purposes. We no longer share any code.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringAfter a view is processed the value of the stack's head is put into the request attributes with this key.Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
STACK_HEAD
After a view is processed the value of the stack's head is put into the request attributes with this key.- See Also:
-
GD
- See Also:
-
CLEANUP
- See Also:
-
ACTION_VIEW_DATA
- See Also:
-
-
Constructor Details
-
JiraWebworkActionDispatcher
public JiraWebworkActionDispatcher()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException Initialize dispatcher servlet- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.http.HttpServlet- Parameters:
config- ServletConfig- Throws:
jakarta.servlet.ServletException
-
service
public void service(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse) throws jakarta.servlet.ServletException, IOException Service a request. The request is first checked to see if it is a multi-part. If it is, then the request is wrapped so WW will be able to work with the multi-part as if it was a normal request. Next, we will process all actions until an action returns a non-action which is usually a view. For each action in a chain, the action's context will be first set and then the action will be instantiated. Next, the previous action if this action isn't the first in the chain will have its attributes copied to the current action.- Overrides:
servicein classjakarta.servlet.http.HttpServlet- Parameters:
httpServletRequest- HttpServletRequesthttpServletResponse- HttpServletResponse- Throws:
jakarta.servlet.ServletExceptionIOException
-