ServletRegistrationBean
@Deprecated public class ServletRegistrationBean extends ServletRegistrationBean implements ServletContextInitializer
ServletContextInitializer
to register Servlet
s 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)
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ServletRegistrationBean()
Deprecated.
|
ServletRegistrationBean(Servlet servlet,
boolean alwaysMapUrl,
String... urlMappings)
Deprecated.
|
ServletRegistrationBean(Servlet servlet,
String... urlMappings)
Deprecated.
|
addUrlMappings, configure, getMultipartConfig, getServlet, getServletName, getUrlMappings, onStartup, setLoadOnStartup, setMultipartConfig, setServlet, setUrlMappings
addInitParameter, configure, getInitParameters, getOrDeduceName, getOrder, isAsyncSupported, isEnabled, setAsyncSupported, setEnabled, setInitParameters, setName, setOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onStartup
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.