@ConfigurationProperties(value="endpoints.actuator") public class ActuatorHalJsonEndpoint extends WebMvcConfigurerAdapter implements MvcEndpoint
MvcEndpoint
for the actuator. Uses content negotiation to provide access to the
HAL browser (when on the classpath), and to HAL-formatted JSON.DISABLED_RESPONSE
Constructor and Description |
---|
ActuatorHalJsonEndpoint(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 |
setPath(String path) |
void |
setSensitive(boolean sensitive) |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
public ActuatorHalJsonEndpoint(ManagementServletContext managementServletContext)
@RequestMapping(produces="application/json") @ResponseBody public org.springframework.hateoas.ResourceSupport links()
public void setPath(String path)
public String getPath()
MvcEndpoint
getPath
in interface MvcEndpoint
public boolean isSensitive()
MvcEndpoint
isSensitive
in interface MvcEndpoint
public void setSensitive(boolean sensitive)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public Class<? extends Endpoint<?>> getEndpointType()
MvcEndpoint
Endpoint
exposed, or null
if this
MvcEndpoint
exposes information that cannot be represented as a traditional
Endpoint
.getEndpointType
in interface MvcEndpoint
protected final ManagementServletContext getManagementServletContext()
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.