@ConfigurationProperties(value="endpoints.docs") public class DocsMvcEndpoint extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter implements MvcEndpoint, org.springframework.context.EnvironmentAware
MvcEndpoint to expose actuator documentation.| Modifier and Type | Class and Description |
|---|---|
static class |
DocsMvcEndpoint.Curies
Properties of the default CurieProvider (used for adding docs links).
|
DISABLED_RESPONSE| Constructor and Description |
|---|
DocsMvcEndpoint(ManagementServletContext managementServletContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) |
String |
browse() |
DocsMvcEndpoint.Curies |
getCuries() |
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. |
String |
getPath()
Return the MVC path of the endpoint.
|
boolean |
isEnabled() |
boolean |
isSensitive()
Return if the endpoint exposes sensitive information.
|
String |
redirect() |
void |
setEnabled(boolean enabled) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
void |
setPath(String path) |
void |
setSensitive(Boolean sensitive) |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic DocsMvcEndpoint(ManagementServletContext managementServletContext)
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAwarepublic DocsMvcEndpoint.Curies getCuries()
@RequestMapping(value="/",
produces="text/html")
public String browse()
@RequestMapping(value="",
produces="text/html")
public String redirect()
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigureraddResourceHandlers in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterpublic 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 MvcEndpointCopyright © 2015 Pivotal Software, Inc.. All rights reserved.