org.roscopeco.janno.views
Class ContextURLDispatcher
java.lang.Object
org.roscopeco.janno.views.AbstractViewDispatcher
org.roscopeco.janno.views.ContextURLDispatcher
- All Implemented Interfaces:
- ActionViewDispatcher
public class ContextURLDispatcher
- extends AbstractViewDispatcher
Dispatches directly to context-relative URLs returned by the action. This is
the most basic ActionViewDispatcher
implementation, used by default
if no implementation can be instantiated from the request-line branch.
This dispatcher expects the action result to be a URL (relative to the
specified application context) of an appropriate view. This will include
the extension and any additional information.
- Version:
- $Revision: 1.1 $ $Date: 2005/08/24 16:34:19 $
- Author:
- Ross Bamford (rosco<at>roscopeco.co.uk)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextURLDispatcher
public ContextURLDispatcher()
dispatchView
public boolean dispatchView(ServletContext ctx,
HttpServletRequest req,
HttpServletResponse resp,
String actionPath,
String actionName,
String actionResult)
throws IOException,
ServletException
- Description copied from class:
AbstractViewDispatcher
- Attempt to dispatch an action-view through this dispatcher. See
ActionViewDispatcher
for general information on the dispatch
process.
- Specified by:
dispatchView
in interface ActionViewDispatcher
- Specified by:
dispatchView
in class AbstractViewDispatcher
- Parameters:
ctx
- The ServletContext
within which the view
request is to be processed.req
- The HttpServletRequest
representing
the user request.resp
- The HttpServletResponse
in use.actionPath
- The path that was requested and resolved to the action.actionName
- The name of the action method that was called.actionResult
- The String
result from the action.
- Returns:
true
if the view was dispatched (even if an error
occured), or false
if the view could not be mapped to
a view builder.
- Throws:
ServletException
- if an error occurs during view processing.
IOException
Copyright © 2005 Roscopeco Open Technologies. All Rights Reserved.