@ConfigurationProperties(prefix="endpoints.env") public class EnvironmentEndpoint extends AbstractEndpoint<Map<String,Object>>
Endpoint
to expose environment
information.Constructor and Description |
---|
EnvironmentEndpoint()
Create a new
EnvironmentEndpoint instance. |
Modifier and Type | Method and Description |
---|---|
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) |
getEnvironment, getId, isEnabled, isSensitive, setEnabled, setEnvironment, setId, setSensitive
public EnvironmentEndpoint()
EnvironmentEndpoint
instance.public void setKeysToSanitize(String... keysToSanitize)
public Map<String,Object> invoke()
Endpoint
protected Map<String,Object> postProcessSourceProperties(String sourceName, Map<String,Object> properties)
sourceName
- the source nameproperties
- the propertiesnull
if the source should not be
addedCopyright © 2016 Pivotal Software, Inc.. All rights reserved.