Rename {file} binding to {f} and introduce new {file} binding for the File Object (without any checks, i.e. nullable)

This commit is contained in:
Reinhard Pointner 2016-07-27 23:31:45 +08:00
parent fc757ce0d0
commit 5a9169c5ed
1 changed files with 2 additions and 1 deletions

View File

@ -91,6 +91,7 @@ public class MediaBindingBean {
return infoObject;
}
@Define("file")
public File getFileObject() {
return mediaFile;
}
@ -864,7 +865,7 @@ public class MediaBindingBean {
return SLASH.splitAsStream(MediaTypes.getDefault().getMediaType(getExtension())).collect(toList());
}
@Define("file")
@Define("f")
public File getMediaFile() {
// make sure file is not null, and that it is an existing file
if (mediaFile == null) {