@ConfigurationProperties(value="refresh") public static class RedirectConfigurationProperties.RefreshRedirectConfigurationProperties extends java.lang.Object implements RefreshRedirectConfiguration
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLED
The default enabled value for forbidden.
|
static java.lang.String |
DEFAULT_REFRESH_URL
The default forbidden rejection target URL.
|
| Constructor and Description |
|---|
RefreshRedirectConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getUrl() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Whether it should redirect on forbidden rejections.
|
void |
setUrl(java.lang.String url)
Where the user is redirected to after trying to access a secured route which he is forbidden to access.
|
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_REFRESH_URL
public RefreshRedirectConfigurationProperties()
@NonNull public java.lang.String getUrl()
getUrl in interface RefreshRedirectConfigurationpublic void setUrl(@NonNull
java.lang.String url)
url - The URLpublic boolean isEnabled()
isEnabled in interface io.micronaut.core.util.Toggleablepublic void setEnabled(boolean enabled)
enabled - The enabled flag