Package io.micronaut.management.endpoint
Class EndpointDefaultConfiguration
java.lang.Object
io.micronaut.management.endpoint.EndpointDefaultConfiguration
The default
Endpoint
configuration.- Since:
- 1.0
- Author:
- James Kleeh
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The context for endpoints settings.static final String
The default base path.static final String
The default context path.static final String
The path for endpoints settings.static final String
The path for endpoints settings.static final String
The prefix for endpoints settings. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()
getPort()
void
setContextPath
(String contextPath) The endpoints context path.void
setEnabled
(Boolean enabled) Sets whether the endpoint is enabled.void
The endpoints base path.void
Sets the port to expose endpoints via.void
setSensitive
(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:
-
CONTEXT_PATH
The context for endpoints settings.- See Also:
-
PORT
The path for endpoints settings.- See Also:
-
DEFAULT_ENDPOINT_BASE_PATH
The default base path.- See Also:
-
DEFAULT_ENDPOINT_CONTEXT_PATH
The default context path.
-
-
Constructor Details
-
EndpointDefaultConfiguration
public EndpointDefaultConfiguration()
-
-
Method Details
-
getPath
- Returns:
- endpoints Base Path (defaults to: "/")
-
getContextPath
- Returns:
- endpoints Context Path (defaults is null)
-
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
-
setContextPath
The endpoints context path. Default value is null.- Parameters:
contextPath
- The Context Path
-
getPort
- Returns:
- The port to expose endpoints via.
-
setPort
Sets the port to expose endpoints via.- Parameters:
port
- The port
-