org.apache.tapestry
Class PageRedirectException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.apache.tapestry.ApplicationRuntimeException
                          |
                          +--org.apache.tapestry.PageRedirectException
All Implemented Interfaces:
ILocatable, Serializable

public class PageRedirectException
extends ApplicationRuntimeException

Exception thrown by a component or IEngineService that wishes to force the application to a particular page. This is often used to protect a sensitive page until the user is authenticated.

Version:
$Id: PageRedirectException.java,v 1.4 2003/08/06 14:28:48 hlship Exp $
Author:
Howard Lewis Ship
See Also:
Serialized Form

Constructor Summary
PageRedirectException(IPage page)
           
PageRedirectException(String targetPageName)
           
PageRedirectException(String message, Object component, Throwable rootCause, String targetPageName)
           
 
Method Summary
 String getTargetPageName()
           
 
Methods inherited from class org.apache.tapestry.ApplicationRuntimeException
getComponent, getLocation, getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageRedirectException

public PageRedirectException(String targetPageName)

PageRedirectException

public PageRedirectException(IPage page)

PageRedirectException

public PageRedirectException(String message,
                             Object component,
                             Throwable rootCause,
                             String targetPageName)
Method Detail

getTargetPageName

public String getTargetPageName()