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
ConstructorDescriptionServletEndpointRegistrar
(String basePath, Collection<ExposableServletEndpoint> servletEndpoints) Deprecated, for removal: This API element is subject to removal in a future version.ServletEndpointRegistrar
(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 TypeMethodDescriptionvoid
onStartup
(ServletContext servletContext) Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version. -
ServletEndpointRegistrar
public ServletEndpointRegistrar(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: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
-
@Endpoint
and@WebEndpoint
support