@ConfigurationProperties(value="problem") public class ProblemConfigurationProperties extends java.lang.Object implements ProblemConfiguration
ConfigurationProperties
implementation of ProblemConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static boolean |
DEFAULT_STACK_TRACKE
The default stackTrace value.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
ProblemConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled() |
boolean |
isStackTrace() |
void |
setEnabled(boolean enabled)
Sets whether the configuration is enabled.
|
void |
setStackTrace(boolean stackTrace) |
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final boolean DEFAULT_STACK_TRACKE
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- True if it is enabledpublic boolean isStackTrace()
isStackTrace
in interface ProblemConfiguration
ThrowableProblem
public void setStackTrace(boolean stackTrace)
stackTrace
- Whether the HTTP Response should include the stack trace for instances of ThrowableProblem
. Default value (false).