java.lang.Object | ||||||
↳ | org.springframework.context.support.ApplicationObjectSupport | |||||
↳ | org.springframework.web.context.support.WebApplicationObjectSupport | |||||
↳ | org.springframework.web.servlet.handler.AbstractHandlerMapping | |||||
↳ | org.springframework.web.servlet.handler.AbstractUrlHandlerMapping | |||||
↳ | org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping | |||||
↳ | org.springframework.web.servlet.mvc.support.AbstractControllerUrlHandlerMapping |
![]() |
Base class for HandlerMapping
implementations
that derive URL paths according to conventions for specific controller types.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Specify controller classes that should be excluded from this mapping.
| |||||||||||
Specify Java packages that should be excluded from this mapping.
| |||||||||||
Set whether to activate or deactivate detection of annotated controllers.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Abstract template method to be implemented by subclasses.
| |||||||||||
This implementation delegates to
buildUrlsForHandler(String, Class) ,
provided that isEligibleForMapping(String, Class) returns true . | |||||||||||
Determine whether the given bean class indicates a controller type
that is supported by this mapping strategy.
| |||||||||||
Determine whether the specified controller is excluded from this mapping.
| |||||||||||
Determine whether the given bean class indicates a controller type
that dispatches to multiple action methods.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Specify controller classes that should be excluded from this mapping. Any such classes will simply be ignored by this HandlerMapping.
Specify Java packages that should be excluded from this mapping. Any classes in such a package (or any of its subpackages) will be ignored by this HandlerMapping.
Default is to exclude the entire "org.springframework.web.servlet.mvc"
package, including its subpackages, since none of Spring's out-of-the-box
Controller implementations is a reasonable candidate for this mapping strategy.
Such controllers are typically handled by a separate HandlerMapping,
e.g. a BeanNameUrlHandlerMapping
,
alongside this ControllerClassNameHandlerMapping for application controllers.
Set whether to activate or deactivate detection of annotated controllers.
Abstract template method to be implemented by subclasses.
beanName | the name of the bean |
---|---|
beanClass | the type of the bean |
This implementation delegates to buildUrlsForHandler(String, Class)
,
provided that isEligibleForMapping(String, Class)
returns true
.
beanName | the name of the candidate bean |
---|
null
or an empty array if none
Determine whether the given bean class indicates a controller type that is supported by this mapping strategy.
beanClass | the class to introspect |
---|
Determine whether the specified controller is excluded from this mapping.
beanName | the name of the controller bean |
---|---|
beanClass | the concrete class of the controller bean |
Determine whether the given bean class indicates a controller type that dispatches to multiple action methods.
beanClass | the class to introspect |
---|