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