Interface MethodNameResolver
- All Known Implementing Classes:
AbstractUrlMethodNameResolver
,InternalPathMethodNameResolver
,ParameterMethodNameResolver
,PropertiesMethodNameResolver
@Deprecated public interface MethodNameResolver
Deprecated.as of 4.3, in favor of annotation-driven handler methodsInterface that parameterizes the MultiActionController class using the Strategy GoF Design pattern, allowing the mapping from incoming request to handler method name to be varied without affecting other application code.Illustrates how delegation can be more flexible than subclassing.
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description String
getHandlerMethodName(HttpServletRequest request)
Deprecated.Return a method name that can handle this request.
Method Detail
getHandlerMethodName
String getHandlerMethodName(HttpServletRequest request) throws NoSuchRequestHandlingMethodException
Deprecated.Return a method name that can handle this request. Such mappings are typically, but not necessarily, based on URL.- Parameters:
request
- current HTTP request- Returns:
- a method name that can handle this request. Never returns
null
; throws exception if not resolvable. - Throws:
NoSuchRequestHandlingMethodException
- if no handler method can be found for the given request