Class RedirectToUrlException

    • Constructor Detail

      • RedirectToUrlException

        public RedirectToUrlException​(String redirectUrl,
                                      int statusCode)
        Construct.
        Parameters:
        redirectUrl - URL to redirect to.
        statusCode - 301 (Moved permanently) or 302 (Moved temporarily)
      • RedirectToUrlException

        public RedirectToUrlException​(String redirectUrl,
                                      int statusCode,
                                      RedirectRequestHandler.Mode mode)
        Construct.
        Parameters:
        redirectUrl - URL to redirect to.
        statusCode - 301 (Moved permanently) or 302 (Moved temporarily)
        mode - The way to made the redirect - via sendRedirect() or directly via setStatus()+setHeader("Location", ...)