JSF-Spring

de.mindmatters.faces.spring.context.servlet.controller
Class ActionMethodNameResolver

java.lang.Object
  extended by de.mindmatters.faces.spring.context.servlet.controller.ActionMethodNameResolver
All Implemented Interfaces:
MethodNameResolver

public final class ActionMethodNameResolver
extends java.lang.Object
implements MethodNameResolver

Simple implementation of MethodNameResolver that maps JSF Action outcomes to method names. This class is the default implementation used by the MultiActionEventController class.

This class invokes the MethodBinding from the ActionSource exposed from the current ActionEvent and maps the evaluated outcome to a method name.

Examples:

Author:
Andreas Kuhrwahl

Constructor Summary
ActionMethodNameResolver()
           
 
Method Summary
 java.lang.String getHandlerMethodName(javax.servlet.http.HttpServletRequest request)
          Return a method name that can handle this request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionMethodNameResolver

public ActionMethodNameResolver()
Method Detail

getHandlerMethodName

public java.lang.String getHandlerMethodName(javax.servlet.http.HttpServletRequest request)
                                      throws NoSuchRequestHandlingMethodException
Return a method name that can handle this request. Such mappings are typically, but not necessarily, based on URL.

Specified by:
getHandlerMethodName in interface MethodNameResolver
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

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG