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
FieldsModifier and TypeFieldDescriptionstatic final StringThe context for endpoints settings.static final StringThe default base path.static final StringThe default context path.static final StringThe path for endpoints settings.static final StringThe path for endpoints settings.static final StringThe prefix for endpoints settings. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPath()getPort()voidsetContextPath(String contextPath) The endpoints context path.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:
-
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
-