public class RedirectException extends RuntimeException
| Constructor and Description |
|---|
RedirectException(String newUrl,
boolean redirectPermanently) |
| Modifier and Type | Method and Description |
|---|---|
String |
getNewUrl()
The new route to redirect to.
|
boolean |
isRedirectPermanently()
Is this a temporary or permanent redirection?
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RedirectException(String newUrl, boolean redirectPermanently)
newUrl - The new route to redirect to. This can be a
full URL or a relative path (+ potential queryString)redirectPermanently - Is this a temporary or permanent redirection?public String getNewUrl()
public boolean isRedirectPermanently()
Copyright © 2016. All rights reserved.