| org.springframework.web.servlet.handler.AbstractUrlHandlerMapping org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping
generatePathMapping | protected String generatePathMapping(Class beanClass)(Code) | | Generate the actual URL path for the given controller class.
Subclasses may choose to customize the paths that are generated
by overriding this method.
Parameters: beanClass - the controller bean class to generate a mapping for the URL path mapping for the given controller |
registerControllers | protected void registerControllers(Class controllerType) throws BeansException(Code) | | Register all controllers of the given type, searching the current
DispatcherServlet's ApplicationContext for matching beans.
Parameters: controllerType - the type of controller to search for throws: BeansException - if the controllers couldn't be obtained or registered |
setExcludedClasses | public void setExcludedClasses(Class[] excludedClasses)(Code) | | Specify controller classes that should be excluded from this mapping.
Any such classes will simply be ignored by this HandlerMapping.
|
setExcludedPackages | public void setExcludedPackages(String[] excludedPackages)(Code) | | 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
org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping ,
alongside this ControllerClassNameHandlerMapping for application controllers.
|
|
|