org.springframework.web.servlet.mvc.support
public class: ControllerBeanNameHandlerMapping [javadoc |
source]
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
org.springframework.web.servlet.mvc.support.ControllerBeanNameHandlerMapping
All Implemented Interfaces:
HandlerMapping, Ordered, ServletContextAware, ApplicationContextAware
Implementation of
org.springframework.web.servlet.HandlerMapping that
follows a simple convention for generating URL path mappings from the
bean names
of registered
org.springframework.web.servlet.mvc.Controller and
org.springframework.web.servlet.mvc.throwaway.ThrowawayController beans
as well as
@Controller annotated beans.
This is similar to org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping
but doesn't expect bean names to follow the URL convention: It turns plain bean names
into URLs by prepending a slash and optionally applying a specified prefix and/or suffix.
However, it only does so for well-known controller types ,
as listed above (analogous to ControllerClassNameHandlerMapping ).
| Methods from org.springframework.web.servlet.handler.AbstractUrlHandlerMapping: |
|---|
|
buildPathExposingHandler, exposePathWithinMapping, getHandlerInternal, getHandlerMap, getPathMatcher, getRootHandler, lookupHandler, registerHandler, registerHandler, setAlwaysUseFullPath, setLazyInitHandlers, setPathMatcher, setRootHandler, setUrlDecode, setUrlPathHelper, validateHandler |
| Methods from org.springframework.web.servlet.handler.AbstractHandlerMapping: |
|---|
|
adaptInterceptor, extendInterceptors, getAdaptedInterceptors, getDefaultHandler, getHandler, getHandlerExecutionChain, getHandlerInternal, getOrder, initApplicationContext, initInterceptors, setDefaultHandler, setInterceptors, setOrder |