public class

MvcDefaultServletHandler

extends AbstractFeatureSpecification
java.lang.Object
   ↳ org.springframework.context.config.AbstractFeatureSpecification
     ↳ org.springframework.web.servlet.config.MvcDefaultServletHandler

Class Overview

Specifies the Spring MVC "default-servlet-handler" container feature. The feature provides the following fine-grained configuration:

Summary

[Expand]
Inherited Fields
From class org.springframework.context.config.AbstractFeatureSpecification
Public Constructors
MvcDefaultServletHandler()

Creates an instance of MvcDefaultServletHandler without.

MvcDefaultServletHandler(String defaultServletName)
The name of the default Servlet to forward to for static resource requests.
Protected Methods
void doValidate(ProblemCollector problems)
[Expand]
Inherited Methods
From class org.springframework.context.config.AbstractFeatureSpecification
From class java.lang.Object
From interface org.springframework.context.config.FeatureSpecification
From interface org.springframework.context.config.SourceAwareSpecification

Public Constructors

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.

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

Protected Methods

protected void doValidate (ProblemCollector problems)