@ConfigurationProperties(prefix="endpoints") public class EndpointProperties extends Object
Constructor and Description |
---|
EndpointProperties() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getEnabled() |
Boolean |
getSensitive() |
static boolean |
isEnabled(org.springframework.core.env.Environment environment,
Boolean enabled)
Determine if an endpoint is enabled based on its specific property and taking into
account the global default.
|
static boolean |
isSensitive(org.springframework.core.env.Environment environment,
Boolean sensitive,
boolean sensitiveDefault)
Determine if an endpoint is sensitive based on its specific property and taking
into account the global default.
|
void |
setEnabled(Boolean enabled) |
void |
setSensitive(Boolean sensitive) |
public Boolean getEnabled()
public void setEnabled(Boolean enabled)
public Boolean getSensitive()
public void setSensitive(Boolean sensitive)
public static boolean isEnabled(org.springframework.core.env.Environment environment, Boolean enabled)
environment
- the Spring environment or null
.enabled
- the endpoint property or null
public static boolean isSensitive(org.springframework.core.env.Environment environment, Boolean sensitive, boolean sensitiveDefault)
environment
- the Spring environment or null
.sensitive
- the endpoint property or null
sensitiveDefault
- the default setting to use if no environment property is
definedCopyright © 2017 Pivotal Software, Inc.. All rights reserved.