@ConfigurationProperties(value="endpoints.all") public class EndpointDefaultConfiguration extends java.lang.Object
Endpoint
configuration.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ENDPOINT_BASE_PATH
The default base path.
|
static java.lang.String |
PATH
The path for endpoints settings.
|
static java.lang.String |
PORT
The path for endpoints settings.
|
static java.lang.String |
PREFIX
The prefix for endpoints settings.
|
Constructor and Description |
---|
EndpointDefaultConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPath() |
java.util.Optional<java.lang.Integer> |
getPort() |
java.util.Optional<java.lang.Boolean> |
isEnabled() |
java.util.Optional<java.lang.Boolean> |
isSensitive() |
void |
setEnabled(java.lang.Boolean enabled)
Sets whether the endpoint is enabled.
|
void |
setPath(java.lang.String path)
The endpoints base path.
|
void |
setPort(java.lang.Integer port)
Sets the port to expose endpoints via.
|
void |
setSensitive(java.lang.Boolean sensitive)
Sets whether the endpoint is sensitive.
|
public static final java.lang.String PREFIX
public static final java.lang.String PATH
public static final java.lang.String PORT
public static final java.lang.String DEFAULT_ENDPOINT_BASE_PATH
public java.lang.String getPath()
public java.util.Optional<java.lang.Boolean> isEnabled()
public java.util.Optional<java.lang.Boolean> isSensitive()
public void setEnabled(java.lang.Boolean enabled)
enabled
- True it is enabled, null for the default behaviourpublic void setSensitive(java.lang.Boolean sensitive)
sensitive
- True it is sensitive, null for the default behaviourpublic void setPath(java.lang.String path)
path
- The pathpublic java.util.Optional<java.lang.Integer> getPort()
public void setPort(@Nullable java.lang.Integer port)
port
- The port