Package io.micronaut.management.endpoint
Class EndpointConfiguration
- java.lang.Object
-
- io.micronaut.management.endpoint.EndpointConfiguration
-
@EachProperty("endpoints") public class EndpointConfiguration extends java.lang.ObjectAnEndpointconfiguration.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPREFIXThe prefix for endpoints configurations.
-
Constructor Summary
Constructors Constructor Description EndpointConfiguration(java.lang.String id, EndpointDefaultConfiguration defaultConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()java.util.Optional<java.lang.Boolean>isEnabled()java.util.Optional<java.lang.Boolean>isSensitive()voidsetEnabled(java.lang.Boolean enabled)Sets whether the endpoint is enabled.voidsetSensitive(java.lang.Boolean sensitive)Sets whether the endpoint is sensitive.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
The prefix for endpoints configurations.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EndpointConfiguration
public EndpointConfiguration(@Parameter java.lang.String id, EndpointDefaultConfiguration defaultConfiguration)- Parameters:
id- The id of the endpointdefaultConfiguration- The default endpoint configuration
-
-
Method Detail
-
getId
public java.lang.String getId()
- Returns:
- The ID of the endpoint
- See Also:
Endpoint.value()
-
isEnabled
public java.util.Optional<java.lang.Boolean> isEnabled()
- Returns:
- Is the endpoint enabled. If not present, use the value of
Endpoint.defaultEnabled()
-
isSensitive
public java.util.Optional<java.lang.Boolean> isSensitive()
- Returns:
- Does the endpoint expose sensitive information. If not present, use the value of
Endpoint.defaultSensitive()
-
setEnabled
public void setEnabled(java.lang.Boolean enabled)
Sets whether the endpoint is enabled.- Parameters:
enabled- True it is enabled, null for the default behaviour
-
setSensitive
public void setSensitive(java.lang.Boolean sensitive)
Sets whether the endpoint is sensitive.- Parameters:
sensitive- True it is sensitive, null for the default behaviour
-
-