Class EnvironmentEndpoint
- java.lang.Object
- org.springframework.boot.actuate.endpoint.AbstractEndpoint<Map<String,Object>>
- org.springframework.boot.actuate.endpoint.EnvironmentEndpoint
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,Endpoint<Map<String,Object>>
,org.springframework.context.EnvironmentAware
@ConfigurationProperties(prefix="endpoints.env") public class EnvironmentEndpoint extends AbstractEndpoint<Map<String,Object>>
Endpoint
to exposeenvironment
information.
Constructor Summary
Constructors Constructor Description EnvironmentEndpoint()
Create a newEnvironmentEndpoint
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.core.env.PropertyResolver
getResolver()
Map<String,Object>
invoke()
Called to invoke the endpoint.protected Map<String,Object>
postProcessSourceProperties(String sourceName, Map<String,Object> properties)
Apply any post processing to source data before it is added.Object
sanitize(String name, Object object)
void
setKeysToSanitize(String... keysToSanitize)
Methods inherited from class org.springframework.boot.actuate.endpoint.AbstractEndpoint
getEnvironment, getId, isEnabled, isSensitive, setEnabled, setEnvironment, setId, setSensitive
Constructor Detail
EnvironmentEndpoint
public EnvironmentEndpoint()
Create a newEnvironmentEndpoint
instance.
Method Detail
setKeysToSanitize
public void setKeysToSanitize(String... keysToSanitize)
invoke
public Map<String,Object> invoke()
Description copied from interface:Endpoint
Called to invoke the endpoint.- Returns:
- the results of the invocation
getResolver
public org.springframework.core.env.PropertyResolver getResolver()
postProcessSourceProperties
protected Map<String,Object> postProcessSourceProperties(String sourceName, Map<String,Object> properties)
Apply any post processing to source data before it is added.- Parameters:
sourceName
- the source nameproperties
- the properties- Returns:
- the post-processed properties or
null
if the source should not be added - Since:
- 1.4.0