com.samskivert.servlet
Class RedirectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.samskivert.servlet.RedirectException
All Implemented Interfaces:
Serializable

public class RedirectException
extends Exception

A redirect exception is thrown by servlet services when they require that the user be redirected to a different URL rather than continue processing this request. It is expected that redirect handling can be implemented in a single place such that servlets can simply allow this exception to propagate up to the proper handler which will then issue the appropriate redirect header.

See Also:
Serialized Form

Constructor Summary
RedirectException(String url)
           
 
Method Summary
 String getRedirectURL()
           
 
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(String url)
Method Detail

getRedirectURL

public String getRedirectURL()


Copyright © 2000-2008 Michael Bayne. All Rights Reserved.