Class ProblemConfigurationProperties

java.lang.Object
io.micronaut.problem.conf.ProblemConfigurationProperties
All Implemented Interfaces:
io.micronaut.core.util.Toggleable, ProblemConfiguration

@ConfigurationProperties("problem") public class ProblemConfigurationProperties extends Object implements ProblemConfiguration
ConfigurationProperties implementation of ProblemConfiguration.
Since:
1.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • ProblemConfigurationProperties

      public ProblemConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • setEnabled

      public void setEnabled(boolean enabled)
      Sets whether the configuration is enabled. Default value true.
      Parameters:
      enabled - True if it is enabled
    • isStackTrace

      public boolean isStackTrace()
      Specified by:
      isStackTrace in interface ProblemConfiguration
      Returns:
      Whether the HTTP Response should include the stack trace for instances of ThrowableProblem
    • setStackTrace

      public void setStackTrace(boolean stackTrace)
      Parameters:
      stackTrace - Whether the HTTP Response should include the stack trace for instances of ThrowableProblem. Default value (false).