Metadata Object binding {object}

This commit is contained in:
Reinhard Pointner 2016-05-18 20:44:42 +08:00
parent 44ea9720ff
commit e83901f174
1 changed files with 2 additions and 2 deletions

View File

@ -86,6 +86,7 @@ public class MediaBindingBean {
this.context = context; this.context = context;
} }
@Define("object")
public Object getInfoObject() { public Object getInfoObject() {
return infoObject; return infoObject;
} }
@ -878,7 +879,7 @@ public class MediaBindingBean {
return null; return null;
} }
@Define("mediaType") @Define("mime")
public List<String> getMediaType() throws Exception { public List<String> getMediaType() throws Exception {
// format engine does not allow / in binding value // format engine does not allow / in binding value
return SLASH.splitAsStream(MediaTypes.getDefault().getMediaType(getExtension())).collect(toList()); return SLASH.splitAsStream(MediaTypes.getDefault().getMediaType(getExtension())).collect(toList());
@ -890,7 +891,6 @@ public class MediaBindingBean {
if (mediaFile == null) { if (mediaFile == null) {
throw new IllegalStateException(EXCEPTION_SAMPLE_FILE_NOT_SET); throw new IllegalStateException(EXCEPTION_SAMPLE_FILE_NOT_SET);
} }
return mediaFile; return mediaFile;
} }