Class ServletEndpointRegistrar
java.lang.Object
org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar
- All Implemented Interfaces:
ServletContextInitializer
@Deprecated(since="3.3.0",
forRemoval=true)
public class ServletEndpointRegistrar
extends Object
implements ServletContextInitializer
Deprecated, for removal: This API element is subject to removal in a future version.
ServletContextInitializer to register servlet
endpoints.- Since:
- 2.0.0
- Author:
- Phillip Webb, Madhura Bhave
-
Constructor Summary
ConstructorsConstructorDescriptionServletEndpointRegistrar(@Nullable String basePath, Collection<ExposableServletEndpoint> servletEndpoints) Deprecated, for removal: This API element is subject to removal in a future version.ServletEndpointRegistrar(@Nullable String basePath, Collection<ExposableServletEndpoint> servletEndpoints, EndpointAccessResolver endpointAccessResolver) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidonStartup(ServletContext servletContext) Deprecated, for removal: This API element is subject to removal in a future version.Configure the givenServletContextwith any servlets, filters, listeners context-params and attributes necessary for initialization.
-
Constructor Details
-
ServletEndpointRegistrar
public ServletEndpointRegistrar(@Nullable String basePath, Collection<ExposableServletEndpoint> servletEndpoints) Deprecated, for removal: This API element is subject to removal in a future version. -
ServletEndpointRegistrar
public ServletEndpointRegistrar(@Nullable String basePath, Collection<ExposableServletEndpoint> servletEndpoints, EndpointAccessResolver endpointAccessResolver) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
onStartup
Deprecated, for removal: This API element is subject to removal in a future version.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
-
@Endpointand@WebEndpointsupport