org.springframework.web.servlet.config
Class MvcDefaultServletHandler
java.lang.Object
org.springframework.context.config.AbstractFeatureSpecification
org.springframework.web.servlet.config.MvcDefaultServletHandler
- All Implemented Interfaces:
- FeatureSpecification, SourceAwareSpecification
public class MvcDefaultServletHandler
- extends AbstractFeatureSpecification
Specifies the Spring MVC "default-servlet-handler" container feature. The
feature provides the following fine-grained configuration:
- Since:
- 3.1
- Author:
- Rossen Stoyanchev
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MvcDefaultServletHandler
public MvcDefaultServletHandler()
Creates an instance of MvcDefaultServletHandler without.
If this constructor is used the DefaultServletHttpRequestHandler
will try to auto-detect the container's default Servlet at startup time
using a list of known names.
If the default Servlet cannot be detected because of using an
unknown container or because it has been manually configured, an
alternate constructor provided here can be used to specify the
servlet name explicitly.
MvcDefaultServletHandler
public MvcDefaultServletHandler(String defaultServletName)
- The name of the default Servlet to forward to for static resource requests.
The
DefaultServletHttpRequestHandler
will try to auto-detect the
container's default Servlet at startup time using a list of known names.
However if the default Servlet cannot be detected because of using an unknown
container or because it has been manually configured, you can use this
constructor to set the servlet name explicitly.
- Parameters:
defaultServletName
- the name of the default servlet
doValidate
protected void doValidate(ProblemCollector problems)
- Specified by:
doValidate
in class AbstractFeatureSpecification