public class

JiraWebworkActionDispatcher

extends HttpServlet
java.lang.Object
   ↳ javax.servlet.GenericServlet
     ↳ javax.servlet.http.HttpServlet
       ↳ com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher
Known Direct Subclasses

Class Overview

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.

Summary

Constants
String ACTION_VIEW_DATA
String CLEANUP
String GD
String STACK_HEAD After a view is processed the value of the stack's head is put into the request attributes with this key.
Public Constructors
JiraWebworkActionDispatcher()
Public Methods
void init(ServletConfig config)
Initialize dispatcher servlet
void service(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
Service a request.
[Expand]
Inherited Methods
From class javax.servlet.http.HttpServlet
From class javax.servlet.GenericServlet
From class java.lang.Object
From interface javax.servlet.Servlet
From interface javax.servlet.ServletConfig

Constants

public static final String ACTION_VIEW_DATA

Constant Value: "jira.action.view.context.data"

public static final String CLEANUP

Constant Value: "jira.webwork.cleanup"

public static final String GD

Constant Value: "jira.webwork.generic.dispatcher"

public static final String STACK_HEAD

After a view is processed the value of the stack's head is put into the request attributes with this key.

Constant Value: "webwork.valuestack.head"

Public Constructors

public JiraWebworkActionDispatcher ()

Public Methods

public void init (ServletConfig config)

Initialize dispatcher servlet

Parameters
config ServletConfig
Throws
ServletException

public void service (HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)

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.

Parameters
httpServletRequest HttpServletRequest
httpServletResponse HttpServletResponse
Throws
IOException
ServletException