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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEndpointConfiguration(String id, EndpointDefaultConfiguration defaultConfiguration) -
Method Summary
Modifier and TypeMethodDescriptiongetId()getPath()Endpoint's path.voidsetEnabled(Boolean enabled) Sets whether the endpoint is enabled.voidEndpoint's path.voidsetSensitive(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
-
setPath
Endpoint's path. If not set the endpoint name is used as the path.- Parameters:
path- Endpoint's path- Since:
- 4.8.0
-
getPath
Endpoint's path. If not set the endpoint name is used as the path.- Returns:
- Endpoint's path
- Since:
- 4.8.0
-