|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.lakesidetech.springframework.web.servlet.mvc.multiaction.SubmitParameterPropertiesMethodNameResolver
The SubmitParameterPropertiesMethodNameResolver
trys to resolve
the method name to called based on the value of the submit parameter used in the
form submission. This trysWebUtils.hasSubmitParameter()
on all mappings in
an attempt to find a method name. If no submit parameter mapping can be found it will default
to the set defaultMethodName
example configuration:
Constructor Summary | |
SubmitParameterPropertiesMethodNameResolver()
|
Method Summary | |
void |
afterPropertiesSet()
validate required properties |
java.lang.String |
getHandlerMethodName(javax.servlet.http.HttpServletRequest request)
Evaluate the method name to resolve for the request |
void |
setDefaultMethodName(java.lang.String defaultMethodName)
|
void |
setMappings(java.util.Properties mappings)
Set URL to method name mappings from a Properties object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SubmitParameterPropertiesMethodNameResolver()
Method Detail |
public void setMappings(java.util.Properties mappings)
mappings
- properties with URL as key and method name as valuepublic void setDefaultMethodName(java.lang.String defaultMethodName)
defaultMethodName
- The defaultMethodName to set.public void afterPropertiesSet()
public java.lang.String getHandlerMethodName(javax.servlet.http.HttpServletRequest request) throws org.springframework.web.servlet.mvc.multiaction.NoSuchRequestHandlingMethodException
getHandlerMethodName
in interface org.springframework.web.servlet.mvc.multiaction.MethodNameResolver
request
- the request object
org.springframework.web.servlet.mvc.multiaction.NoSuchRequestHandlingMethodException
MethodNameResolver.getHandlerMethodName(javax.servlet.http.HttpServletRequest)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |