@ConfigurationProperties(prefix="endpoints.env") public class EnvironmentMvcEndpoint extends EndpointMvcAdapter implements org.springframework.context.EnvironmentAware
EnvironmentEndpoint as an MvcEndpoint.| Modifier and Type | Class and Description |
|---|---|
static class |
EnvironmentMvcEndpoint.NoSuchPropertyException
Exception thrown when the specified property cannot be found.
|
DISABLED_RESPONSE| Constructor and Description |
|---|
EnvironmentMvcEndpoint(EnvironmentEndpoint delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
setEnvironment(org.springframework.core.env.Environment environment) |
Object |
value(String name) |
invokegetDelegate, getDisabledResponse, getEndpointType, getPath, isSensitive, setPathpublic EnvironmentMvcEndpoint(EnvironmentEndpoint delegate)
@GetMapping(value="/{name:.*}",
produces="application/json")
@ResponseBody
@HypermediaDisabled
public Object value(@PathVariable
String name)
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAwareCopyright © 2016 Pivotal Software, Inc.. All rights reserved.