com.opensymphony.webwork.dispatcher |
Classes for action dispatching in WebWork (the Controller part of MVC).
|
Java Source File Name | Type | Comment |
AbstractServletDispatcherTestCase.java | Class | |
ActionContextCleanUp.java | Class |
Special filter designed to work with the
FilterDispatcher and allow
for easier integration with SiteMesh. |
ApplicationMap.java | Class | A simple implementation of the
java.util.Map interface to handle a collection of attributes and
init parameters in a
javax.servlet.ServletContext object. |
ChartResult.java | Class | A custom Result type for chart data. |
ChartResultTest.java | Class | |
DefaultActionSupport.java | Class | |
DefautActionMapperTest.java | Class | |
DispatcherUtils.java | Class | A utility class whereby FilterDispatcher delegate most of its tasks to. |
DispatcherUtilsTest.java | Class | Test case for DispatcherUtils. |
FilterDispatcher.java | Class | Master filter for WebWork that handles four distinct responsibilities:
- Executing actions
- Cleaning up the
ActionContext (see note)
- Serving static content
- Kicking off XWork's IoC for the request lifecycle
IMPORTANT: this filter must be mapped to all requests. |
FilterDispatcherCompatWeblogic61.java | Class | When running Weblogic Server 6.1, this class should be
specified in web.xml instead of
FilterDispatcher .
This class properly handles the weblogic.jar handling
of servlet filters. |
FilterDispatcherTest.java | Class | FilterDispatcher TestCase. |
FlashResult.java | Class |
A flash result, that save the current action into the http session before
invoking super.doExecute(...) , which actually just do
a redirect to a specific location just as a normal
ServletRedirectResult would.
key - The key under which current action is stored in Http Session. |
FlashResultTest.java | Class | |
HttpHeaderResult.java | Class |
A custom Result type for evaluating HTTP headers against the ValueStack.
This result type takes the following parameters:
- status - the http servlet response status code that should be set on a response.
- parse - true by default.
|
HttpHeaderResultTest.java | Class | |
NullActionMapper.java | Class | |
PlainTextResult.java | Class |
A result that send the content out as plain text. |
PlainTextResultTest.java | Class | Test case for PlainTextResult. |
RequestMap.java | Class | A simple implementation of the
java.util.Map interface to handle a collection of request attributes. |
ServletActionRedirectResult.java | Class |
This result uses the
ActionMapper provided by the
ActionMapperFactory to redirect the browser to a
URL that invokes the specified action and (optional) namespace. |
ServletActionRedirectResultTest.java | Class | |
ServletDispatchedTestAssertInterceptor.java | Class | |
ServletDispatcher.java | Class | Main dispatcher servlet in WebWork2 which acts as the controller in the MVC paradigm. |
ServletDispatcherResult.java | Class |
Includes or forwards to a view (usually a jsp). |
ServletDispatcherResultTest.java | Class | |
ServletDispatcherTest.java | Class | |
ServletRedirectResult.java | Class |
Calls the
HttpServletResponse.sendRedirect(String) sendRedirect method to the location specified. |
ServletRedirectResultTest.java | Class | |
SessionMap.java | Class | A simple implementation of the
java.util.Map interface to handle a collection of HTTP session
attributes. |
SessionMapTest.java | Class | |
ShutDownListener.java | Interface |
An interface to be implemented if require to get informed when WebWork
shuts down, It's being hooked up through
FilterDispatcher.destroy
->
DispatcherUtils.cleanup methods calls. |
StartUpListener.java | Interface |
An interface to be implemented if require to get informed when WebWork
starts up, It's being hooked up through
FilterDispatcher.init(javax.servlet.FilterConfig)
->
DispatcherUtils.init(javax.servlet.ServletContext) methods calls. |
StreamResult.java | Class |
A custom Result type for send raw data (via an InputStream) directly to the
HttpServletResponse. |
StreamResultTest.java | Class | Unit test for
StreamResult . |
VelocityResult.java | Class |
Using the Servlet container's
JspFactory , this result mocks a JSP
execution environment and then displays a Velocity template that will be
streamed directly to the servlet output.
This result type takes the following parameters:
- location (default) - the location of the template to process.
- parse - true by default.
|
VelocityResultTest.java | Class | |
WebWorkRequestWrapper.java | Class |
All WebWork requests are wrapped with this class, which provides simple JSTL accessibility. |
WebWorkResultSupport.java | Class |
A base class for all WebWork action execution results.
The "location" param is the default parameter, meaning the most common usage of this result would be:
This class provides two common parameters for any subclass:
|
WebWorkResultSupportTest.java | Class | Test case for WebWorkResultSupport. |