|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.waffle.action.AbstractMethodDefinitionFinder
public abstract class AbstractMethodDefinitionFinder
Abstract base implementation for all method definition finders
| Constructor Summary | |
|---|---|
AbstractMethodDefinitionFinder(javax.servlet.ServletContext servletContext,
ArgumentResolver argumentResolver,
MethodNameResolver methodNameResolver,
StringTransmuter stringTransmuter,
ActionMonitor actionMonitor)
|
|
| Method Summary | |
|---|---|
MethodDefinition |
find(java.lang.Object controller,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns a method definition of a given controller |
protected abstract java.util.List<java.lang.reflect.Method> |
findMethods(java.lang.Class<?> type,
java.lang.String methodName)
Returns the methods matching the type and name |
protected java.lang.String |
formatArgument(java.lang.String value)
Wraps value in curly brackets to fit with default handling |
protected abstract java.util.List<java.lang.Object> |
getArguments(java.lang.reflect.Method method,
javax.servlet.http.HttpServletRequest request)
Returns the resolved list of method arguments. |
protected boolean |
hasEquivalentParameterTypes(MethodDefinition methodDefinition,
StringTransmuter stringTransmuter)
|
protected java.util.List<java.lang.Object> |
resolveArguments(javax.servlet.http.HttpServletRequest request,
java.util.Iterator<java.lang.String> arguments)
Resolves arguments by name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMethodDefinitionFinder(javax.servlet.ServletContext servletContext,
ArgumentResolver argumentResolver,
MethodNameResolver methodNameResolver,
StringTransmuter stringTransmuter,
ActionMonitor actionMonitor)
| Method Detail |
|---|
public MethodDefinition find(java.lang.Object controller,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws WaffleException
MethodDefinitionFinder
find in interface MethodDefinitionFindercontroller - the controller Objectrequest - the HttpServletRequestresponse - the HttpServletResponse
WaffleException
protected boolean hasEquivalentParameterTypes(MethodDefinition methodDefinition,
StringTransmuter stringTransmuter)
protected java.lang.String formatArgument(java.lang.String value)
value - the argument value
protected java.util.List<java.lang.Object> resolveArguments(javax.servlet.http.HttpServletRequest request,
java.util.Iterator<java.lang.String> arguments)
request - the HttpServletRequestarguments - the List of argument names
ArgumentResolver
protected abstract java.util.List<java.lang.Object> getArguments(java.lang.reflect.Method method,
javax.servlet.http.HttpServletRequest request)
method - the action method to be invokedrequest - the HttpServetRequest
protected abstract java.util.List<java.lang.reflect.Method> findMethods(java.lang.Class<?> type,
java.lang.String methodName)
type - the Class in which to look for the methodmethodName - the method name
NoMatchingActionMethodException - if no methods match
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||