@ConfigurationProperties(value="endpoints.hal") public class HalBrowserEndpoint extends WebMvcConfigurerAdapter implements MvcEndpoint
MvcEndpoint to support the Spring Data HAL browser.DISABLED_RESPONSE| Constructor and Description |
|---|
HalBrowserEndpoint(ManagementServerProperties management,
String defaultPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceHandlers(ResourceHandlerRegistry registry) |
String |
browse() |
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 |
isSensitive()
Return if the endpoint exposes sensitive information.
|
String |
redirect() |
void |
setPath(String path) |
void |
setSensitive(boolean sensitive) |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic HalBrowserEndpoint(ManagementServerProperties management, String defaultPath)
@RequestMapping(value="/", produces="text/html") public String browse()
@RequestMapping(value="", produces="text/html") public String redirect()
public void addResourceHandlers(ResourceHandlerRegistry registry)
addResourceHandlers in interface WebMvcConfigureraddResourceHandlers in class WebMvcConfigurerAdapterpublic void setPath(String path)
public String getPath()
MvcEndpointgetPath in interface MvcEndpointpublic void setSensitive(boolean sensitive)
public boolean isSensitive()
MvcEndpointisSensitive in interface MvcEndpointpublic 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.