org.riotfamily.common.web.controller
Class HttpErrorController

java.lang.Object
  extended by 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]

Constructor Summary
HttpErrorController(int code)
           
HttpErrorController(int code, String message)
           
 
Method Summary
 ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpErrorController

public HttpErrorController(int code)

HttpErrorController

public HttpErrorController(int code,
                           String message)
Method Detail

handleRequest

public ModelAndView handleRequest(HttpServletRequest request,
                                  HttpServletResponse response)
                           throws Exception
Specified by:
handleRequest in interface Controller
Throws:
Exception