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 @Nullable 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 TypeMethodDescription@Nullable StringgetPath()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
-
PATH
-
CONTEXT_PATH
-
PORT
-
DEFAULT_ENDPOINT_BASE_PATH
-
DEFAULT_ENDPOINT_CONTEXT_PATH
The default context path.
-
-
Constructor Details
-
EndpointDefaultConfiguration
public EndpointDefaultConfiguration()
-
-
Method Details
-
getPath
-
getContextPath
- Returns:
- endpoints Context Path (defaults is null)
-
isEnabled
-
isSensitive
-
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
-
setContextPath
The endpoints context path. Default value is null.- Parameters:
contextPath- The Context Path
-
getPort
-
setPort
Sets the port to expose endpoints via.- Parameters:
port- The port
-