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