public class RedirectException extends RuntimeException
| Modifier | Constructor and Description |
|---|---|
|
RedirectException()
Redirects to the current URL.
|
|
RedirectException(FlashMessage flashMessage)
Redirects to the current URL with
a Flash message.
|
|
RedirectException(FlashMessageLevel flashMessageType,
String flashMessageTex)
Redirects to the current URL with
a Flash message.
|
|
RedirectException(FlashMessageLevel flashMessageType,
String flashMessageTex,
JsonObject flashMessageVariables)
Redirects to the current URL with
a Flash message.
|
|
RedirectException(String newUrl) |
|
RedirectException(String newUrl,
boolean redirectPermanently) |
protected |
RedirectException(String newUrl,
boolean redirectPermanently,
FlashMessage flashMessage,
FlashMessageLevel flashMessageType,
String flashMessageText,
JsonObject flashMessageVariables) |
|
RedirectException(String newUrl,
boolean redirectPermanently,
FlashMessageLevel flashMessageType,
String flashMessageTex)
Redirect with a Flash message.
|
|
RedirectException(String newUrl,
boolean redirectPermanently,
FlashMessageLevel flashMessageType,
String flashMessageTex,
JsonObject flashMessageVariables)
Redirect with a Flash message.
|
|
RedirectException(String newUrl,
FlashMessage flashMessage)
Redirect with a Flash message.
|
|
RedirectException(String newUrl,
FlashMessageLevel flashMessageType,
String flashMessageTex)
Redirect with a Flash message.
|
|
RedirectException(String newUrl,
FlashMessageLevel flashMessageType,
String flashMessageTex,
JsonObject flashMessageVariables)
Redirect with a Flash message.
|
| Modifier and Type | Method and Description |
|---|---|
FlashMessage |
getFlashMessage()
Can be null.
|
String |
getFlashMessageText()
Can be null.
|
FlashMessageLevel |
getFlashMessageType()
Can be null.
|
JsonObject |
getFlashMessageVariables()
Can be null.
|
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()
public RedirectException(FlashMessage flashMessage)
public RedirectException(FlashMessageLevel flashMessageType, String flashMessageTex)
public RedirectException(FlashMessageLevel flashMessageType, String flashMessageTex, JsonObject flashMessageVariables)
public RedirectException(String newUrl)
newUrl - The new route to
redirect to (not permanently). This can be a
full URL or a relative path (+ a potential queryString)public RedirectException(String newUrl, FlashMessage flashMessage)
newUrl - The new route to redirect to (not permanently).
This can be a
full URL or a relative path (+ a potential queryString)public RedirectException(String newUrl, FlashMessageLevel flashMessageType, String flashMessageTex)
newUrl - The new route to
redirect to (not permanently). This can be a
full URL or a relative path (+ a potential queryString)public RedirectException(String newUrl, FlashMessageLevel flashMessageType, String flashMessageTex, JsonObject flashMessageVariables)
newUrl - The new route to
redirect to (not permanently). This can be a
full URL or a relative path (+ a potential queryString)public RedirectException(String newUrl, boolean redirectPermanently)
newUrl - The new route to redirect to. This can be a
full URL or a relative path (+ a potential queryString)redirectPermanently - Is this a temporary or permanent redirection?public RedirectException(String newUrl, boolean redirectPermanently, FlashMessageLevel flashMessageType, String flashMessageTex)
newUrl - The new route to
redirect to (not permanently). This can be a
full URL or a relative path (+ a potential queryString)redirectPermanently - Is this a temporary or permanent redirection?public RedirectException(String newUrl, boolean redirectPermanently, FlashMessageLevel flashMessageType, String flashMessageTex, JsonObject flashMessageVariables)
newUrl - The new route to
redirect to (not permanently). This can be a
full URL or a relative path (+ a potential queryString)redirectPermanently - Is this a temporary or permanent redirection?protected RedirectException(String newUrl, boolean redirectPermanently, FlashMessage flashMessage, FlashMessageLevel flashMessageType, String flashMessageText, JsonObject flashMessageVariables)
newUrl - The new route to redirect to. This can be a
full URL or a relative path (+ a potential queryString)redirectPermanently - Is this a temporary or permanent redirection?flashMessage - a Flash message to display on the target
url?public String getNewUrl()
public boolean isRedirectPermanently()
public FlashMessage getFlashMessage()
public FlashMessageLevel getFlashMessageType()
public String getFlashMessageText()
public JsonObject getFlashMessageVariables()
Copyright © 2016. All rights reserved.