The Spring Framework

Interface MethodNameResolver

All Known Implementing Classes:
AbstractUrlMethodNameResolver, InternalPathMethodNameResolver, ParameterMethodNameResolver, PropertiesMethodNameResolver

public interface MethodNameResolver

Interface 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.

Rod Johnson
See Also:

Method Summary
 String getHandlerMethodName(HttpServletRequest request)
          Return a method name that can handle this request.

Method Detail


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

The Spring Framework

Copyright © 2002-2007 The Spring Framework.