public class PushInjectionFilter extends Object implements Filter
| Constructor and Description |
|---|
PushInjectionFilter()
Creates an PushInjectionFilter that can be used by any action class.
|
PushInjectionFilter(boolean tryField)
Creates an PushInjectionFilter that can be used by any action class.
|
PushInjectionFilter(boolean tryField,
boolean convert)
Creates an PushInjectionFilter that can be used by any action class.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
getConvertedValue(String className,
String value,
Locale loc)
You can override this method to code more automatic conversions.
|
protected boolean |
setValue(Object target,
String name,
Object value,
Locale loc) |
public PushInjectionFilter()
public PushInjectionFilter(boolean tryField)
tryField - A flag indicating whether this filter should try to access private attributes.public PushInjectionFilter(boolean tryField,
boolean convert)
tryField - A flag indicating whether this filter should try to access private attributes.protected Object getConvertedValue(String className, String value, Locale loc)
className - The type to convert tovalue - The value to convertloc - The locale to use for conversion (useful for date)public String filter(InvocationChain chain) throws Exception
Filterpublic void destroy()
FilterCopyright © 2015. All Rights Reserved.