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
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
void
|
doDelete(HttpServletRequest arg0, HttpServletResponse arg1)
|
void
|
doGet(HttpServletRequest arg0, HttpServletResponse arg1)
|
void
|
doHead(HttpServletRequest arg0, HttpServletResponse arg1)
|
void
|
doOptions(HttpServletRequest arg0, HttpServletResponse arg1)
|
void
|
doPost(HttpServletRequest arg0, HttpServletResponse arg1)
|
void
|
doPut(HttpServletRequest arg0, HttpServletResponse arg1)
|
void
|
doTrace(HttpServletRequest arg0, HttpServletResponse arg1)
|
long
|
getLastModified(HttpServletRequest arg0)
|
void
|
service(ServletRequest arg0, ServletResponse arg1)
|
void
|
service(HttpServletRequest arg0, HttpServletResponse arg1)
|
|
From class
javax.servlet.GenericServlet
void
|
destroy()
|
String
|
getInitParameter(String arg0)
|
Enumeration
|
getInitParameterNames()
|
ServletConfig
|
getServletConfig()
|
ServletContext
|
getServletContext()
|
String
|
getServletInfo()
|
String
|
getServletName()
|
void
|
init()
|
void
|
init(ServletConfig arg0)
|
void
|
log(String arg0, Throwable arg1)
|
void
|
log(String arg0)
|
abstract
void
|
service(ServletRequest arg0, ServletResponse arg1)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
javax.servlet.Servlet
void
|
destroy()
|
ServletConfig
|
getServletConfig()
|
String
|
getServletInfo()
|
void
|
init(ServletConfig arg0)
|
void
|
service(ServletRequest arg0, ServletResponse arg1)
|
|
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
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
|