org.springframework.web.servlet.mvc
Class UrlFilenameViewController
java.lang.Object
org.springframework.web.servlet.mvc.UrlFilenameViewController
All Implemented Interfaces: Controller
public class UrlFilenameViewController extends 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
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
UrlFilenameViewController
public UrlFilenameViewController ()
handleRequest
public ModelAndView handleRequest (HttpServletRequest request,
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 requestresponse
- current HTTP response
Returns: a ModelAndView to render, or null if handled directly
Copyright (C) 2003-2004 The Spring Framework Project.