com.interface21.web.servlet.mvc
Interface Controller
- All Known Implementing Classes:
- AbstractController, BurlapServiceExporter, DemoController, HessianServiceExporter, MultiActionController
- public interface Controller
Simple MVC controller interface. Most similar to a Struts Action.
An implementation of the Controller interface is a reusable,
threadsafe object that handles multiple HTTP requests throughout
the lifecycle of an application. Controllers are normally JavaBeans,
allowing for easy and consistent configuration on application startup.
This is the core interface of the default MVC workflow.
- Version:
- $Id: Controller.java,v 1.4 2003/06/06 16:15:08 jhoeller Exp $
- Author:
- Rod Johnson
|
Method Summary |
ModelAndView |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the request and return a ModelAndView object which the
DispatcherServlet will render. |
handleRequest
public ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Process the request and return a ModelAndView object which the
DispatcherServlet will render. A null return is not an error.
It indicates that this object completed request processing itself,
thus there is no ModelAndView to render.
- Parameters:
request - current HTTP requestresponse - current HTTP response- Returns:
- a ModelAndView to render, or null if handled directly
Rod Johnson and Spring contributors 2001-2003.