public class ValidatorFilter extends Object implements Filter
| Constructor and Description |
|---|
ValidatorFilter()
Creates a Validator filter.
|
ValidatorFilter(String resultForError) |
| 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.
|
static String |
getDir() |
void |
setDir(String dir)
Sets the directory where to look for error messages.
|
void |
setResultForError(String resultForError)
By default, the filter returns the BaseAction.ERROR when a
validation failure happens.
|
public ValidatorFilter()
public ValidatorFilter(String resultForError)
public static String getDir()
public void setResultForError(String resultForError)
resultForError - The result to return in case of a validation failure.public void setDir(String dir)
dir - The directory where to look for error messages.public String filter(InvocationChain chain) throws Exception
Filterpublic void destroy()
FilterCopyright © 2015. All Rights Reserved.