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.
since 3.3.0 in favor of @Endpoint and @WebEndpoint support
Since:
2.0.0
Author:
Phillip Webb, Madhura Bhave
  • Constructor Details

    • ServletEndpointRegistrar

      public ServletEndpointRegistrar(String basePath, Collection<ExposableServletEndpoint> servletEndpoints)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • onStartup

      public void onStartup(ServletContext servletContext) throws ServletException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ServletContextInitializer
      Configure the given ServletContext with any servlets, filters, listeners context-params and attributes necessary for initialization.
      Specified by:
      onStartup in interface ServletContextInitializer
      Parameters:
      servletContext - the ServletContext to initialize
      Throws:
      ServletException - if any call against the given ServletContext throws a ServletException