wheel
Class RedirectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by wheel.RedirectException
All Implemented Interfaces:
java.io.Serializable

public class RedirectException
extends java.lang.RuntimeException

Throwing this exception from anywhere in a component, causes the request processing to stop, and restart using the page set in the exception. Or the exception can carry a full url to which a redirect will be sent.

Author:
Henri Frilund
See Also:
Serialized Form

Constructor Summary
RedirectException(StandaloneComponent redirectTo)
           
RedirectException(java.lang.String redirectUrl)
           
 
Method Summary
 StandaloneComponent getPage()
           
 java.lang.String getUrl()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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(StandaloneComponent redirectTo)

RedirectException

public RedirectException(java.lang.String redirectUrl)
Method Detail

getPage

public StandaloneComponent getPage()

getUrl

public java.lang.String getUrl()


Copyright © 2007-2008. All Rights Reserved.