ServletRegistrationBean@Deprecated public class ServletRegistrationBean extends ServletRegistrationBean implements ServletContextInitializer
ServletContextInitializer to register Servlets in a Servlet 3.0+
container. Similar to the registration features provided by ServletContext but with a Spring Bean
friendly design.
The servlet must be specified before calling
ServletRegistrationBean.onStartup(javax.servlet.ServletContext). URL mapping can be configured used ServletRegistrationBean.setUrlMappings(java.util.Collection<java.lang.String>) or
omitted when mapping to '/*' (unless
alwaysMapUrl is set to
false). The servlet name will be deduced if not specified.
ServletContextInitializer,
ServletContext.addServlet(String, Servlet)| Constructor and Description |
|---|
ServletRegistrationBean()
Deprecated.
|
ServletRegistrationBean(javax.servlet.Servlet servlet,
boolean alwaysMapUrl,
String... urlMappings)
Deprecated.
|
ServletRegistrationBean(javax.servlet.Servlet servlet,
String... urlMappings)
Deprecated.
|
addUrlMappings, configure, getMultipartConfig, getServlet, getServletName, getUrlMappings, onStartup, setLoadOnStartup, setMultipartConfig, setServlet, setUrlMappingsaddInitParameter, configure, getInitParameters, getOrDeduceName, getOrder, isAsyncSupported, isEnabled, setAsyncSupported, setEnabled, setInitParameters, setName, setOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonStartuppublic ServletRegistrationBean()
public ServletRegistrationBean(javax.servlet.Servlet servlet,
boolean alwaysMapUrl,
String... urlMappings)
public ServletRegistrationBean(javax.servlet.Servlet servlet,
String... urlMappings)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.