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
ConstructorsConstructorDescriptionServletEndpointRegistrar(String basePath, Collection<ExposableServletEndpoint> servletEndpoints) -
Method Summary
Modifier and TypeMethodDescriptionvoidonStartup(ServletContext servletContext) Configure the givenServletContextwith 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:ServletContextInitializerConfigure the givenServletContextwith any servlets, filters, listeners context-params and attributes necessary for initialization.- Specified by:
onStartupin interfaceServletContextInitializer- Parameters:
servletContext- theServletContextto initialize- Throws:
ServletException- if any call against the givenServletContextthrows aServletException
-