|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.filter.InjectionFilter
public class InjectionFilter
This filter will inject input values into the action or model.
| Constructor Summary | |
|---|---|
InjectionFilter()
Creates a InjectionFilter that can be used by any action class. |
|
InjectionFilter(boolean tryField)
Creates an InjectionFilter that can be used by any action class. |
|
InjectionFilter(boolean tryField,
boolean convert)
Creates an InjectionFilter that can be used by any action class. |
|
InjectionFilter(boolean tryField,
boolean convert,
boolean convertNullToFalse)
Force NULL values to be converted to FALSE booleans (only when type is Boolean or boolean!) |
|
| Method Summary | |
|---|---|
void |
destroy()
Gives a chance to the filter to deallocalte any resources before it is destroyed. |
String |
filter(InvocationChain chain)
Executes the filter. |
protected Object |
getTarget(Action action)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InjectionFilter()
public InjectionFilter(boolean tryField)
tryField - A flag indicating whether this filter should try to access private attributes.
public InjectionFilter(boolean tryField,
boolean convert)
tryField - A flag indicating whether this filter should try to access private attributes.
public InjectionFilter(boolean tryField,
boolean convert,
boolean convertNullToFalse)
tryField - convert - convertNullToFalse - | Method Detail |
|---|
protected Object getTarget(Action action)
throws FilterException
FilterException
public String filter(InvocationChain chain)
throws Exception
Filter
filter in interface Filterchain - The InvocationChain for the action this filter is being applied to.
Exceptionpublic void destroy()
Filter
destroy in interface Filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||