|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.web.servlet.mvc.multiaction.ParameterMethodNameResolver
Simple implementation of MethodNameResolver that looks for a parameter value containing the name of the method to invoke.
The name of the parameter and optionally also the name of a default handler method can be specified as JavaBean properties.
setParamName(java.lang.String)
,
setDefaultMethodName(java.lang.String)
Constructor Summary | |
ParameterMethodNameResolver()
|
Method Summary | |
java.lang.String |
getHandlerMethodName(javax.servlet.http.HttpServletRequest request)
Return a method name that can handle this request. |
void |
setDefaultMethodName(java.lang.String defaultMethodName)
Set the name of the default handler method that should be used when no parameter was found in the request |
void |
setParamName(java.lang.String paramName)
Set the parameter name we're looking for. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParameterMethodNameResolver()
Method Detail |
public void setParamName(java.lang.String paramName)
public void setDefaultMethodName(java.lang.String defaultMethodName)
public java.lang.String getHandlerMethodName(javax.servlet.http.HttpServletRequest request) throws NoSuchRequestHandlingMethodException
MethodNameResolver
getHandlerMethodName
in interface MethodNameResolver
NoSuchRequestHandlingMethodException
- if no method
can be found for this URL
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |