this.client = client;
}
@ServiceActivator
public String ingestMETS(Message<File> message) throws IngestException {
IngestResponse response = null;
try {
response = FedoraClient.ingest().content(message.getPayload())
.format("info:fedora/fedora-system:METSFedoraExt-1.1")
.execute(client);
} catch (FedoraClientException e) {
throw new IngestException(e);
}
return response.getPid();
}