@ConfigurationProperties(value="endpoints.actuator") public class HalJsonMvcEndpoint extends WebMvcConfigurerAdapter implements MvcEndpoint, EnvironmentAware
MvcEndpoint to expose HAL-formatted JSON.DISABLED_RESPONSE| Constructor and Description |
|---|
HalJsonMvcEndpoint(ManagementServletContext managementServletContext) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Endpoint<?>> |
getEndpointType()
Return the type of
Endpoint exposed, or null if this
MvcEndpoint exposes information that cannot be represented as a traditional
Endpoint. |
protected ManagementServletContext |
getManagementServletContext() |
String |
getPath()
Return the MVC path of the endpoint.
|
boolean |
isEnabled() |
boolean |
isSensitive()
Return if the endpoint exposes sensitive information.
|
org.springframework.hateoas.ResourceSupport |
links() |
void |
setEnabled(boolean enabled) |
void |
setEnvironment(Environment environment) |
void |
setPath(String path) |
void |
setSensitive(Boolean sensitive) |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic HalJsonMvcEndpoint(ManagementServletContext managementServletContext)
public void setEnvironment(Environment environment)
setEnvironment in interface EnvironmentAware@RequestMapping(produces="application/json") @ResponseBody public org.springframework.hateoas.ResourceSupport links()
public void setPath(String path)
public String getPath()
MvcEndpointgetPath in interface MvcEndpointpublic boolean isEnabled()
public void setEnabled(boolean enabled)
public boolean isSensitive()
MvcEndpointisSensitive in interface MvcEndpointpublic void setSensitive(Boolean sensitive)
public Class<? extends Endpoint<?>> getEndpointType()
MvcEndpointEndpoint exposed, or null if this
MvcEndpoint exposes information that cannot be represented as a traditional
Endpoint.getEndpointType in interface MvcEndpointprotected final ManagementServletContext getManagementServletContext()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.