java.lang.Objectorg.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.support.WebContentGenerator
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
All Implemented Interfaces:
HandlerAdapter, ServletContextAware, ApplicationContextAware
Supports request parameter binding through the RequestParam annotation. Also supports the ModelAttribute annotation for exposing model attribute values to the view, as well as InitBinder for binder initialization methods and SessionAttributes for automatic session management of specific attributes.
This adapter can be customized through various bean properties. A common use case is to apply shared binder initialization logic through a custom WebBindingInitializer .
Juergen - HoellerArjen - Poutsma2.5 - | Field Summary | ||
|---|---|---|
| public static final String | PAGE_NOT_FOUND_LOG_CATEGORY | Log category to use when no mapped handler is found for a request.
|
| protected static final Log | pageNotFoundLogger | Additional logger to use when no mapped handler is found for a request.
|
| Fields inherited from org.springframework.web.servlet.support.WebContentGenerator: |
|---|
| METHOD_GET, METHOD_HEAD, METHOD_POST |
| Fields inherited from org.springframework.context.support.ApplicationObjectSupport: |
|---|
| logger |
| Constructor: |
|---|
|
| Method from org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter Summary: |
|---|
| createBinder, getLastModified, handle, handleNoSuchRequestHandlingMethod, invokeHandlerMethod, setAlwaysUseFullPath, setCustomArgumentResolver, setCustomArgumentResolvers, setMethodNameResolver, setParameterNameDiscoverer, setPathMatcher, setSessionAttributeStore, setSynchronizeOnSession, setUrlDecode, setUrlPathHelper, setWebBindingInitializer, supports |
| Methods from org.springframework.web.servlet.support.WebContentGenerator: |
|---|
| applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader |
| Methods from org.springframework.web.context.support.WebApplicationObjectSupport: |
|---|
| getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext |
| Methods from org.springframework.context.support.ApplicationObjectSupport: |
|---|
| getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, isContextRequired, requiredContextClass, setApplicationContext |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter Detail: |
|---|
The default implementation creates a standard ServletRequestDataBinder. This can be overridden for custom ServletRequestDataBinder subclasses. |
|
|
The default implementation logs a warning and sends an HTTP 404 error. Alternatively, a fallback view could be chosen, or the NoSuchRequestHandlingMethodException could be rethrown as-is. |
|
Default is "false". |
|
|
@RequestMapping annotation).
Will only kick in when the handler method cannot be resolved uniquely through the annotation metadata already. |
Default is a org.springframework.core.LocalVariableTableParameterNameDiscoverer . |
|
Default is org.springframework.web.bind.support.DefaultSessionAttributeStore , storing session attributes in the HttpSession, using the same attribute name as in the model. |
More specifically, the execution of each handler method will get synchronized if this flag is "true". The best available session mutex will be used for the synchronization; ideally, this will be a mutex exposed by HttpSessionMutexListener. The session mutex is guaranteed to be the same object during
the entire lifetime of the session, available under the key defined
by the In many cases, the HttpSession reference itself is a safe mutex as well, since it will always be the same object reference for the same active logical session. However, this is not guaranteed across different servlet containers; the only 100% safe way is a session mutex. |
Uses either the request encoding or the default encoding according to the Servlet spec (ISO-8859-1). |
Use this to override the default UrlPathHelper with a custom subclass, or to share common UrlPathHelper settings across multiple HandlerMappings and HandlerAdapters. |
|
|