public class ServletEndpointRegistrar extends Object implements ServletContextInitializer
ServletContextInitializer to register servlet
endpoints.| Constructor and Description |
|---|
ServletEndpointRegistrar(String basePath,
Collection<ExposableServletEndpoint> servletEndpoints) |
| Modifier and Type | Method and Description |
|---|---|
void |
onStartup(javax.servlet.ServletContext servletContext)
Configure the given
ServletContext with any servlets, filters, listeners
context-params and attributes necessary for initialization. |
public ServletEndpointRegistrar(String basePath, Collection<ExposableServletEndpoint> servletEndpoints)
public void onStartup(javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException
ServletContextInitializerServletContext with any servlets, filters, listeners
context-params and attributes necessary for initialization.onStartup in interface ServletContextInitializerservletContext - the ServletContext to initializejavax.servlet.ServletException - if any call against the given ServletContext
throws a ServletExceptionCopyright © 2020 Pivotal Software, Inc.. All rights reserved.