java.lang.Object | |
↳ | org.springframework.web.servlet.mvc.multiaction.AbstractUrlMethodNameResolver |
Known Direct Subclasses |
Abstract base class for URL-based MethodNameResolver
implementations.
Provides infrastructure for mapping handlers to URLs and configurable
URL lookup. For information on the latter, see the
setAlwaysUseFullPath(boolean)
"alwaysUseFullPath"}
and "urlDecode"
properties.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger | Logger available to subclasses |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the URL path to use for lookup and delegates to
getHandlerMethodNameForUrlPath . | |||||||||||
Set if URL lookup should always use full path within current servlet
context.
| |||||||||||
Set if context path and request URI should be URL-decoded.
| |||||||||||
Set the UrlPathHelper to use for resolution of lookup paths.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return a method name that can handle this request, based on the
given lookup path.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.web.servlet.mvc.multiaction.MethodNameResolver
|
Logger available to subclasses
Retrieves the URL path to use for lookup and delegates to
getHandlerMethodNameForUrlPath
.
Converts null
values to NoSuchRequestHandlingMethodExceptions.
request | current HTTP request |
---|
null
; throws exception if not resolvable.Set if URL lookup should always use full path within current servlet context. Else, the path within the current servlet mapping is used if applicable (i.e. in the case of a ".../*" servlet mapping in web.xml). Default is "false".
Set if context path and request URI should be URL-decoded. Both are returned undecoded by the Servlet API, in contrast to the servlet path.
Uses either the request encoding or the default encoding according to the Servlet spec (ISO-8859-1).
Set the UrlPathHelper to use for resolution of lookup paths.
Use this to override the default UrlPathHelper with a custom subclass, or to share common UrlPathHelper settings across multiple MethodNameResolvers and HandlerMappings.
Return a method name that can handle this request, based on the
given lookup path. Called by getHandlerMethodName
.
urlPath | the URL path to use for lookup, according to the settings in this class |
---|