@ConfigurationProperties(value="micronaut.security.redirect") public class RedirectRejectionHandlerConfigurationProperties extends Object implements RedirectRejectionHandlerConfiguration
ConfigurationProperties
implementation of RedirectRejectionHandlerConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static HttpStatus |
DEFAULT_REDIRECTIONHTTPSTATUS
The default http status used for redirection.
|
static String |
PREFIX |
Constructor and Description |
---|
RedirectRejectionHandlerConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
HttpStatus |
getHttpStatus() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Enables
RedirectRejectionHandler . |
void |
setHttpStatus(HttpStatus httpStatus)
The Http status used used for redirection.
|
public static final String PREFIX
public static final boolean DEFAULT_ENABLED
public static final HttpStatus DEFAULT_REDIRECTIONHTTPSTATUS
public RedirectRejectionHandlerConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface Toggleable
public void setEnabled(boolean enabled)
RedirectRejectionHandler
. Default value true.enabled
- True if enabled@Nonnull public HttpStatus getHttpStatus()
getHttpStatus
in interface RedirectRejectionHandlerConfiguration
public void setHttpStatus(HttpStatus httpStatus)
httpStatus
- The Http status used used for redirection.