com.interface21.web.servlet.mvc
Class ParameterizableViewController
java.lang.Object
|
+--com.interface21.context.support.ApplicationObjectSupport
|
+--com.interface21.web.servlet.mvc.WebContentGenerator
|
+--com.interface21.web.servlet.mvc.AbstractController
|
+--com.interface21.web.servlet.mvc.ParameterizableViewController
- All Implemented Interfaces:
- ApplicationContextAware, Controller, InitializingBean
- public class ParameterizableViewController
- extends AbstractController
- implements InitializingBean
Trivial controller that always returns a named view.
An alternative to sending a request straight to a view
such as a JSP.
- Author:
- Rod Johnson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterizableViewController
public ParameterizableViewController()
getViewName
public java.lang.String getViewName()
- Gets the viewName.
Used in this class: other properties are for subclasses only.
- Returns:
- Returns a String
setViewName
public void setViewName(java.lang.String viewName)
- Sets the viewName.
- Parameters:
viewName - The viewName to set
handleRequestInternal
protected ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Description copied from class:
AbstractController
- Template method. Subclasses must implement this.
The contract is the same as for handleRequest.
- Overrides:
handleRequestInternal in class AbstractController
- See Also:
AbstractController.handleRequest(HttpServletRequest, HttpServletResponse)
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Ensure at least successView is set!?
- Specified by:
afterPropertiesSet in interface InitializingBean
- See Also:
InitializingBean.afterPropertiesSet()
Rod Johnson and Spring contributors 2001-2003.