org.barracudamvc.core.event
Class ClientSideRedirectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.barracudamvc.plankton.exceptions.NestableException
              extended by org.barracudamvc.core.event.EventException
                  extended by org.barracudamvc.core.event.ClientSideRedirectException
All Implemented Interfaces:
Serializable

public class ClientSideRedirectException
extends EventException

This class defines a ClientSideRedirectException...throwing this will cause the ApplicationGateway to redirect the browser to the new Event.

See Also:
Serialized Form

Constructor Summary
ClientSideRedirectException(BaseEvent newEvent)
          The public contructor for ClientSideRedirectException
ClientSideRedirectException(String iurl)
          The public contructor for ClientSideRedirectException
 
Method Summary
 String getRedirectURL()
          Get the new event that triggered this interrupt
 void setRedirectURL(String iurl)
          Set the Redirect URL (normally you don't need to do this since you simply pass the target URL into the constructor.
 String toString()
           
 
Methods inherited from class org.barracudamvc.plankton.exceptions.NestableException
getBaseException, getRootException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientSideRedirectException

public ClientSideRedirectException(BaseEvent newEvent)
The public contructor for ClientSideRedirectException

Parameters:
newEvent - - the newEvent the client browser should be redirected to

ClientSideRedirectException

public ClientSideRedirectException(String iurl)
The public contructor for ClientSideRedirectException

Parameters:
iurl - - the URL the client browser should be redirected to
Method Detail

getRedirectURL

public String getRedirectURL()
Get the new event that triggered this interrupt


setRedirectURL

public void setRedirectURL(String iurl)
Set the Redirect URL (normally you don't need to do this since you simply pass the target URL into the constructor. If, howver, you find the need to modify a redirect after its already been created, you can do it through this method)


toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2006 BarracudaMVC.org All Rights Reserved.