@Endpoint(id="env") public class EnvironmentEndpoint extends Object
@Endpoint
to expose environment
information.Modifier and Type | Class and Description |
---|---|
static class |
EnvironmentEndpoint.EnvironmentDescriptor
A description of an
Environment . |
static class |
EnvironmentEndpoint.EnvironmentEntryDescriptor
A description of an entry of the
Environment . |
static class |
EnvironmentEndpoint.PropertySourceDescriptor
A description of a
PropertySource . |
static class |
EnvironmentEndpoint.PropertySourceEntryDescriptor
A description of a particular entry of
PropertySource . |
static class |
EnvironmentEndpoint.PropertySummaryDescriptor
A summary of a particular entry of the
Environment . |
static class |
EnvironmentEndpoint.PropertyValueDescriptor
A description of a property's value, including its origin if available.
|
Constructor and Description |
---|
EnvironmentEndpoint(Environment environment) |
EnvironmentEndpoint(Environment environment,
Iterable<SanitizingFunction> sanitizingFunctions) |
Modifier and Type | Method and Description |
---|---|
EnvironmentEndpoint.EnvironmentDescriptor |
environment(String pattern) |
EnvironmentEndpoint.EnvironmentEntryDescriptor |
environmentEntry(String toMatch) |
void |
keysToSanitize(String... keysToSanitize) |
Object |
sanitize(String key,
Object value)
Deprecated.
since 2.6.0 for removal in 2.8.0 as sanitization should be internal to
the class
|
void |
setKeysToSanitize(String... keysToSanitize) |
protected Object |
stringifyIfNecessary(Object value) |
public EnvironmentEndpoint(Environment environment)
public EnvironmentEndpoint(Environment environment, Iterable<SanitizingFunction> sanitizingFunctions)
public void setKeysToSanitize(String... keysToSanitize)
public void keysToSanitize(String... keysToSanitize)
@ReadOperation public EnvironmentEndpoint.EnvironmentDescriptor environment(@Nullable String pattern)
@ReadOperation public EnvironmentEndpoint.EnvironmentEntryDescriptor environmentEntry(@Selector String toMatch)
@Deprecated public Object sanitize(String key, Object value)
key
- the name to sanitizevalue
- the value to sanitize