org.springframework.web.servlet.config
Class MvcDefaultServletHandler

java.lang.Object
  extended by org.springframework.context.config.AbstractFeatureSpecification
      extended by 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

Field Summary
 
Fields inherited from class org.springframework.context.config.AbstractFeatureSpecification
executorType
 
Constructor Summary
MvcDefaultServletHandler()
          Creates an instance of MvcDefaultServletHandler without.
MvcDefaultServletHandler(String defaultServletName)
          The name of the default Servlet to forward to for static resource requests.
 
Method Summary
protected  void doValidate(ProblemCollector problems)
           
 
Methods inherited from class org.springframework.context.config.AbstractFeatureSpecification
execute, source, source, sourceName, sourceName, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

doValidate

protected void doValidate(ProblemCollector problems)
Specified by:
doValidate in class AbstractFeatureSpecification