|
||||||||||
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 method arguments contained in the request |
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 MethodDefinitionFinder
controller
- the controller Objectrequest
- the HttpServletRequestresponse
- the HttpServletResponse
WaffleException
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 Methodrequest
- 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 |