@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) |
Modifier and Type | Method and Description |
---|---|
EnvironmentEndpoint.EnvironmentDescriptor |
environment(String pattern) |
EnvironmentEndpoint.EnvironmentEntryDescriptor |
environmentEntry(String toMatch) |
void |
keysToSanitize(String... keysToSanitize) |
Object |
sanitize(String name,
Object object) |
void |
setKeysToSanitize(String... keysToSanitize) |
protected Object |
stringifyIfNecessary(Object value) |
public EnvironmentEndpoint(Environment environment)
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)