org.apache.wicket
Class RedirectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.wicket.AbortException
                  extended by org.apache.wicket.AbstractRestartResponseException
                      extended by org.apache.wicket.RestartResponseException
                          extended by org.apache.wicket.RedirectException
All Implemented Interfaces:
Serializable

public class RedirectException
extends RestartResponseException

client-Side redirect to wicket page.

sends http status '302 Moved' with response header 'Location: {my-page-url}' to the client to enforce a client-side redirect. The client will request the new page with another HTTP GET request and the url in the address bar of the browser will be updated.

Author:
Peter Ertl
See Also:
Serialized Form

Constructor Summary
RedirectException(Class<? extends Page> pageClass)
          redirect to page
RedirectException(Class<? extends Page> pageClass, PageParameters params)
          redirect to page
 
Method Summary
 
Methods inherited from class org.apache.wicket.AbortException
fillInStackTrace
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RedirectException

public RedirectException(Class<? extends Page> pageClass)
redirect to page

Parameters:
pageClass - page class

RedirectException

public RedirectException(Class<? extends Page> pageClass,
                         PageParameters params)
redirect to page

Parameters:
pageClass - page class
params - page parameters


Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.