接口 MethodNameResolver
- 所有已知实现类:
AbstractUrlMethodNameResolver
,InternalPathMethodNameResolver
,ParameterMethodNameResolver
,PropertiesMethodNameResolver
@Deprecated public interface MethodNameResolver
已过时。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.
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 String
getHandlerMethodName(HttpServletRequest request)
已过时。Return a method name that can handle this request.
方法详细资料
getHandlerMethodName
String getHandlerMethodName(HttpServletRequest request) throws NoSuchRequestHandlingMethodException
已过时。Return a method name that can handle this request. Such mappings are typically, but not necessarily, based on URL.- 参数:
request
- current HTTP request- 返回:
- a method name that can handle this request. Never returns
null
; throws exception if not resolvable. - 抛出:
NoSuchRequestHandlingMethodException
- if no handler method can be found for the given request