org.riotfamily.website.misc
Class QuickjumpController

java.lang.Object
  extended by org.riotfamily.website.misc.QuickjumpController
All Implemented Interfaces:
Controller

public class QuickjumpController
extends Object
implements Controller

Controller that can be used as action for a quick-jump form. The controller reads a URL from a request parameter and send a redirect to that URL. If the parameter is either null, an empty string or starts with with a hash character ('#'), a 204 No Content response is sent.

Author:
Felix Gnass [fgnass at neteye dot de]

Constructor Summary
QuickjumpController()
           
 
Method Summary
 ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
           
 void setUrlParameter(String urlParameter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickjumpController

public QuickjumpController()
Method Detail

setUrlParameter

public void setUrlParameter(String urlParameter)

handleRequest

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