Class ServletEndpointRegistrar
java.lang.Object
org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar
- All Implemented Interfaces:
ServletContextInitializer
ServletContextInitializer
to register servlet
endpoints
.- Since:
- 2.0.0
- Author:
- Phillip Webb, Madhura Bhave
-
Constructor Summary
ConstructorDescriptionServletEndpointRegistrar
(String basePath, Collection<ExposableServletEndpoint> servletEndpoints) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onStartup
(ServletContext servletContext) Configure the givenServletContext
with any servlets, filters, listeners context-params and attributes necessary for initialization.
-
Constructor Details
-
ServletEndpointRegistrar
public ServletEndpointRegistrar(String basePath, Collection<ExposableServletEndpoint> servletEndpoints)
-
-
Method Details
-
onStartup
Description copied from interface:ServletContextInitializer
Configure the givenServletContext
with any servlets, filters, listeners context-params and attributes necessary for initialization.- Specified by:
onStartup
in interfaceServletContextInitializer
- Parameters:
servletContext
- theServletContext
to initialize- Throws:
ServletException
- if any call against the givenServletContext
throws aServletException
-