Class HalBrowserMvcEndpoint
- java.lang.Object
- org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
- org.springframework.boot.actuate.endpoint.mvc.AbstractMvcEndpoint
- org.springframework.boot.actuate.endpoint.mvc.AbstractNamedMvcEndpoint
- org.springframework.boot.actuate.endpoint.mvc.HalJsonMvcEndpoint
- org.springframework.boot.actuate.endpoint.mvc.HalBrowserMvcEndpoint
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,MvcEndpoint
,NamedMvcEndpoint
,org.springframework.context.EnvironmentAware
,org.springframework.context.ResourceLoaderAware
,org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public class HalBrowserMvcEndpoint extends HalJsonMvcEndpoint implements org.springframework.context.ResourceLoaderAware
MvcEndpoint
to expose a HAL browser.- Since:
- 1.3.0
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HalBrowserMvcEndpoint.HalBrowserLocation
HAL Browser properties.
Field Summary
Fields inherited from interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
DISABLED_RESPONSE
Constructor Summary
Constructors Constructor Description HalBrowserMvcEndpoint(ManagementServletContext managementServletContext)
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
String
browse(javax.servlet.http.HttpServletRequest request)
static HalBrowserMvcEndpoint.HalBrowserLocation
getHalBrowserLocation(org.springframework.core.io.ResourceLoader resourceLoader)
void
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Methods inherited from class org.springframework.boot.actuate.endpoint.mvc.HalJsonMvcEndpoint
getManagementServletContext, links
Methods inherited from class org.springframework.boot.actuate.endpoint.mvc.AbstractNamedMvcEndpoint
getName
Methods inherited from class org.springframework.boot.actuate.endpoint.mvc.AbstractMvcEndpoint
getEndpointType, getEnvironment, getPath, isEnabled, isSensitive, setEnabled, setEnvironment, setPath, setSensitive
Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
getEndpointType, getPath, isSensitive
Constructor Detail
HalBrowserMvcEndpoint
public HalBrowserMvcEndpoint(ManagementServletContext managementServletContext)
Method Detail
browse
@RequestMapping(produces="text/html") public String browse(javax.servlet.http.HttpServletRequest request)
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
- Specified by:
setResourceLoader
in interfaceorg.springframework.context.ResourceLoaderAware
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
- Specified by:
addResourceHandlers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Overrides:
addResourceHandlers
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
getHalBrowserLocation
public static HalBrowserMvcEndpoint.HalBrowserLocation getHalBrowserLocation(org.springframework.core.io.ResourceLoader resourceLoader)