org.mentawai.filter
Class MethodParamFilter
java.lang.Object
org.mentawai.filter.MethodParamFilter
- All Implemented Interfaces:
- Filter
public class MethodParamFilter
- extends Object
- implements Filter
This filter will place a java.util.List with the action input keys we
want to use as the parameters of a Pojo Action method.
It simply takes the list of params passed, create a list with them, and place this
list in the action input with the PARAM_KEY key value, so that it can be later
accessed by the InvocationChain.
- Author:
- Sergio Oliveira Jr
PARAM_KEY
public static String PARAM_KEY
MethodParamFilter
public MethodParamFilter(String... params)
filter
public String filter(InvocationChain chain)
throws Exception
- Description copied from interface:
Filter
- Executes the filter.
- Specified by:
filter in interface Filter
- Parameters:
chain - The InvocationChain for the action this filter is being applied to.
- Returns:
- The result of the filter or the action the filter is being applied to.
- Throws:
Exception
destroy
public void destroy()
- Description copied from interface:
Filter
- Gives a chance to the filter to deallocalte any resources before it is destroyed.
This is called when the web application is stopped, in other words,
this has nothing to do with garbage collection.
- Specified by:
destroy in interface Filter
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.