Class EndpointConfiguration

java.lang.Object
io.micronaut.management.endpoint.EndpointConfiguration

@EachProperty("endpoints") public class EndpointConfiguration extends Object
An Endpoint configuration.
Since:
1.0
Author:
Graeme Rocher
  • Field Details

  • Constructor Details

    • EndpointConfiguration

      public EndpointConfiguration(@Parameter String id, EndpointDefaultConfiguration defaultConfiguration)
      Parameters:
      id - The id of the endpoint
      defaultConfiguration - The default endpoint configuration
  • Method Details

    • getId

      public String getId()
      Returns:
      The ID of the endpoint
      See Also:
    • isEnabled

      public Optional<Boolean> isEnabled()
      Returns:
      Is the endpoint enabled. If not present, use the value of Endpoint.defaultEnabled()
    • isSensitive

      public Optional<Boolean> isSensitive()
      Returns:
      Does the endpoint expose sensitive information. If not present, use the value of Endpoint.defaultSensitive()
    • setEnabled

      public void setEnabled(Boolean enabled)
      Sets whether the endpoint is enabled.
      Parameters:
      enabled - True it is enabled, null for the default behaviour
    • setSensitive

      public void setSensitive(Boolean sensitive)
      Sets whether the endpoint is sensitive.
      Parameters:
      sensitive - True it is sensitive, null for the default behaviour