org.codehaus.waffle.action
Class RequestParameterMethodNameResolver

java.lang.Object
  extended by org.codehaus.waffle.action.RequestParameterMethodNameResolver
All Implemented Interfaces:
MethodNameResolver

public class RequestParameterMethodNameResolver
extends java.lang.Object
implements MethodNameResolver

Implementation of method name resolver which returns the value of a configurable action parameter key, which defaults to 'method'.

The resolved name is monitored along with the available parameter key set.

Author:
Michael Ward, Mauro Talevi

Constructor Summary
RequestParameterMethodNameResolver(ActionMonitor actionMonitor)
           
RequestParameterMethodNameResolver(RequestParameterMethodNameResolverConfig configuration, ActionMonitor actionMonitor)
           
 
Method Summary
 java.lang.String resolve(javax.servlet.http.HttpServletRequest request)
          This implementation determines the method name from the request parameters (the default parameter name used is method).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestParameterMethodNameResolver

public RequestParameterMethodNameResolver(ActionMonitor actionMonitor)

RequestParameterMethodNameResolver

public RequestParameterMethodNameResolver(RequestParameterMethodNameResolverConfig configuration,
                                          ActionMonitor actionMonitor)
Method Detail

resolve

public java.lang.String resolve(javax.servlet.http.HttpServletRequest request)
This implementation determines the method name from the request parameters (the default parameter name used is method).

Specified by:
resolve in interface MethodNameResolver
Parameters:
request -
Returns:


Copyright © 2008. All Rights Reserved.