Class RedirectException

  • All Implemented Interfaces:

    public class RedirectException
    extends FilterException
    This exception may be thrown if a filter wants to reject something and redirect the user elsewhere.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
      RedirectException​(java.lang.String msg, java.lang.String redirect)
      Constructs a new RedirectException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getRedirect()
      Get the URI for redirection.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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​(java.lang.String msg,
                                 java.lang.String redirect)
        Constructs a new RedirectException.
        msg - The message for the exception
        redirect - The redirect URI.
    • Method Detail

      • getRedirect

        public java.lang.String getRedirect()
        Get the URI for redirection.
        The URI given in the constructor.