public class RedirectToUrlException extends RequestHandlerExecutor.ReplaceHandlerException
RestartResponseException
RestartResponseException
,
RestartResponseAtInterceptPageException
,
Serialized FormConstructor and Description |
---|
RedirectToUrlException(String redirectUrl)
Construct.
|
RedirectToUrlException(String redirectUrl,
int statusCode)
Construct.
|
RedirectToUrlException(String redirectUrl,
int statusCode,
RedirectRequestHandler.Mode mode)
Construct.
|
fillInStackTrace, getRemoveScheduled, getReplacementRequestHandler, isRemoveAll
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RedirectToUrlException(String redirectUrl)
redirectUrl
- URL to redirect to.public RedirectToUrlException(String redirectUrl, int statusCode)
redirectUrl
- URL to redirect to.statusCode
- 301 (Moved permanently) or 302 (Moved temporarily)public RedirectToUrlException(String redirectUrl, int statusCode, RedirectRequestHandler.Mode mode)
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", ...)Copyright © 2006–2022 Apache Software Foundation. All rights reserved.