org.riotfamily.common.web.controller
Class HttpErrorController
java.lang.Object
org.riotfamily.common.web.controller.HttpErrorController
- All Implemented Interfaces:
- Controller
public class HttpErrorController
- extends Object
- implements Controller
Controller that sends a HTTP error response with a configurable message
and status code.
- Author:
- Felix Gnass [fgnass at neteye dot de]
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpErrorController
public HttpErrorController(int code)
HttpErrorController
public HttpErrorController(int code,
String message)
handleRequest
public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response)
throws Exception
- Specified by:
handleRequest
in interface Controller
- Throws:
Exception