Package io.micronaut.management.endpoint
Class EndpointConfiguration
java.lang.Object
io.micronaut.management.endpoint.EndpointConfiguration
An
Endpoint
configuration.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEndpointConfiguration
(String id, EndpointDefaultConfiguration defaultConfiguration) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
void
setEnabled
(Boolean enabled) Sets whether the endpoint is enabled.void
setSensitive
(Boolean sensitive) Sets whether the endpoint is sensitive.
-
Field Details
-
PREFIX
The prefix for endpoints configurations.- See Also:
-
-
Constructor Details
-
EndpointConfiguration
public EndpointConfiguration(@Parameter String id, EndpointDefaultConfiguration defaultConfiguration) - Parameters:
id
- The id of the endpointdefaultConfiguration
- The default endpoint configuration
-
-
Method Details
-
getId
- Returns:
- The ID of the endpoint
- See Also:
-
isEnabled
- Returns:
- Is the endpoint enabled. If not present, use the value of
Endpoint.defaultEnabled()
-
isSensitive
- Returns:
- Does the endpoint expose sensitive information. If not present, use the value of
Endpoint.defaultSensitive()
-
setEnabled
Sets whether the endpoint is enabled.- Parameters:
enabled
- True it is enabled, null for the default behaviour
-
setSensitive
Sets whether the endpoint is sensitive.- Parameters:
sensitive
- True it is sensitive, null for the default behaviour
-