@Deprecated public class InternalPathMethodNameResolver extends AbstractUrlMethodNameResolver
MethodNameResolver that maps URL to
method name. Although this is the default implementation used by the
MultiActionController class (because it requires no configuration),
it's bit naive for most applications. In particular, we don't usually
want to tie URL to implementation methods.
Maps the resource name after the last slash, ignoring an extension. E.g. "/foo/bar/baz.html" to "baz", assuming a "/foo/bar/baz.html" controller mapping to the corresponding MultiActionController handler. method. Doesn't support wildcards.
logger| Constructor and Description |
|---|
InternalPathMethodNameResolver()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
extractHandlerMethodNameFromUrlPath(java.lang.String uri)
Deprecated.
Extract the handler method name from the given request URI.
|
protected java.lang.String |
getHandlerMethodNameForUrlPath(java.lang.String urlPath)
Deprecated.
Extracts the method name indicated by the URL path.
|
protected java.lang.String |
getPrefix()
Deprecated.
Return the common prefix for handler method names.
|
protected java.lang.String |
getSuffix()
Deprecated.
Return the common suffix for handler method names.
|
protected java.lang.String |
postProcessHandlerMethodName(java.lang.String methodName)
Deprecated.
Build the full handler method name based on the given method name
as indicated by the URL path.
|
void |
setPrefix(java.lang.String prefix)
Deprecated.
Specify a common prefix for handler method names.
|
void |
setSuffix(java.lang.String suffix)
Deprecated.
Specify a common suffix for handler method names.
|
getHandlerMethodName, setAlwaysUseFullPath, setUrlDecode, setUrlPathHelperpublic InternalPathMethodNameResolver()
public void setPrefix(java.lang.String prefix)
protected java.lang.String getPrefix()
public void setSuffix(java.lang.String suffix)
protected java.lang.String getSuffix()
protected java.lang.String getHandlerMethodNameForUrlPath(java.lang.String urlPath)
getHandlerMethodNameForUrlPath in class AbstractUrlMethodNameResolverurlPath - the URL path to use for lookup,
according to the settings in this classextractHandlerMethodNameFromUrlPath(java.lang.String),
postProcessHandlerMethodName(java.lang.String)protected java.lang.String extractHandlerMethodNameFromUrlPath(java.lang.String uri)
WebUtils.extractFilenameFromUrlPath(String).uri - the request URI (e.g. "/index.html")WebUtils.extractFilenameFromUrlPath(java.lang.String)protected java.lang.String postProcessHandlerMethodName(java.lang.String methodName)
The default implementation simply applies prefix and suffix. This can be overridden, for example, to manipulate upper case / lower case, etc.
methodName - the original method name, as indicated by the URL pathgetPrefix(),
getSuffix()