org.springframework.web.servlet.mvc
Class UrlFilenameViewController

java.lang.Object
  extended byorg.springframework.web.servlet.mvc.UrlFilenameViewController
All Implemented Interfaces:
Controller

public class UrlFilenameViewController
extends java.lang.Object
implements Controller

Controller that transforms the virtual filename at the end of a URL to a view name. Example: "/index.html" -> "index"

Author:
Alef Arendsen

Constructor Summary
UrlFilenameViewController()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlFilenameViewController

public UrlFilenameViewController()
Method Detail

handleRequest

public ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response)
Description copied from interface: Controller
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.

Specified by:
handleRequest in interface Controller
Parameters:
request - current HTTP request
response - current HTTP response
Returns:
a ModelAndView to render, or null if handled directly


Copyright (C) 2003-2004 The Spring Framework Project.