*/
public IdentifyResult identify(DigitalObject dob, List<Parameter> parameters ) {
// Initialise the result:
// Use this resolver:
FileTypeResolver ftr;
try {
ftr = FileTypeResolver.instantiate();
} catch (Exception e) {
e.printStackTrace();
return this.returnWithErrorMessage("Could not instanciate the file type resolver.");
}
// Can only cope if the object is 'simple':
if (dob.getContent() == null) {
return this
.returnWithErrorMessage("The Content of the DigitalObject should not be NULL.");
}
// URL, can deal with this:
String type = null;
try {
type = ftr.getMIMEType(dob.getPermanentUri().toURL());
} catch (MalformedURLException e) {
e.printStackTrace();
}
ServiceReport rep = new ServiceReport(Type.INFO, Status.SUCCESS, "Nothing checked");