Class EndpointProperties
- java.lang.Object
- org.springframework.boot.actuate.endpoint.EndpointProperties
@ConfigurationProperties(prefix="endpoints") public class EndpointProperties extends Object
Global endpoint properties.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description EndpointProperties()
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
Constructor Detail
EndpointProperties
public EndpointProperties()
Method Detail
getEnabled
public Boolean getEnabled()
setEnabled
public void setEnabled(Boolean enabled)
getSensitive
public Boolean getSensitive()
setSensitive
public void setSensitive(Boolean sensitive)
isEnabled
public 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.- Parameters:
environment
- the Spring environment ornull
.enabled
- the endpoint property ornull
- Returns:
- if the endpoint is enabled
isSensitive
public 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.- Parameters:
environment
- the Spring environment ornull
.sensitive
- the endpoint property ornull
sensitiveDefault
- the default setting to use if no environment property is defined- Returns:
- if the endpoint is sensitive