Package io.micronaut.management.endpoint
Class EndpointDefaultConfiguration
java.lang.Object
io.micronaut.management.endpoint.EndpointDefaultConfiguration
The default
Endpoint configuration.- Since:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPath()getPort()voidsetEnabled(Boolean enabled) Sets whether the endpoint is enabled.voidThe endpoints base path.voidSets the port to expose endpoints via.voidsetSensitive(Boolean sensitive) Sets whether the endpoint is sensitive.
-
Field Details
-
PREFIX
The prefix for endpoints settings.- See Also:
-
PATH
The path for endpoints settings.- See Also:
-
PORT
The path for endpoints settings.- See Also:
-
DEFAULT_ENDPOINT_BASE_PATH
The default base path.- See Also:
-
-
Constructor Details
-
EndpointDefaultConfiguration
public EndpointDefaultConfiguration()
-
-
Method Details
-
getPath
- Returns:
- endpoints Base Path (defaults to: "/")
-
isEnabled
- Returns:
- Whether the endpoint is enabled
-
isSensitive
- Returns:
- Does the endpoint expose sensitive information
-
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
The endpoints base path. It must include a leading and trailing '/'. Default value ("/").- Parameters:
path- The path
-
getPort
- Returns:
- The port to expose endpoints via.
-
setPort
Sets the port to expose endpoints via.- Parameters:
port- The port
-