Class RedirectException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RedirectException
    extends java.lang.Error
    RedirectException is thrown internally when a response is redirected to a new URL. Although this is not an Error, it subclasses java.lang.Error because it's not meant to be caught by application code (similar to java.lang.ThreadDeath).
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RedirectException​(java.lang.String url)
      Creates a new RedirectException object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getUrl()
      Return the URL to redirect to.
      • 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 url)
        Creates a new RedirectException object.
        Parameters:
        url - the URL
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Return the URL to redirect to.
        Returns:
        the URL