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(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(ServletContext servletContext) throws ServletException
ServletContextInitializer
ServletContext
with any servlets, filters, listeners
context-params and attributes necessary for initialization.onStartup
in interface ServletContextInitializer
servletContext
- the ServletContext
to initializeServletException
- if any call against the given ServletContext
throws a ServletException
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.