public class FileFilter extends BaseFilter
| Constructor and Description |
|---|
FileFilter(org.springframework.core.MethodParameter methodParameter)
Creates a new instance of the
FileFilter class. |
| Modifier and Type | Method and Description |
|---|---|
FilterFields |
getFields(Object object,
RequestSession request)
Returns list of ignorable fields of object
|
static String |
getFileName(String resourceName)
Get file name from resource name
|
static File |
resourceFile(String resourceName)
Get file from resource
|
protected void |
setConfig(org.springframework.core.MethodParameter methodParameter)
Attempt to retrieve all FieldFilterSetting annotations from method
|
void |
setFileWatcher(FileWatcher fileWatcher) |
getRequestMethodParameterpublic FileFilter(org.springframework.core.MethodParameter methodParameter)
FileFilter class.methodParameter - MethodParameter methodpublic void setFileWatcher(FileWatcher fileWatcher)
public static String getFileName(String resourceName)
Returns local file name of resource
Example: resource name config.xml, return local file .../resources/config.xml
public static File resourceFile(String resourceName)
Returns File file from resource name if file exist
protected void setConfig(org.springframework.core.MethodParameter methodParameter)
setConfig in class BaseFiltermethodParameter - MethodParameter method parameterpublic FilterFields getFields(Object object, RequestSession request)
BaseFiltergetFields in class BaseFilterobject - Objectrequest - RequestSessionFilterFieldsCopyright © 2019. All rights reserved.