Examples of IngestResponse


Examples of com.yourmediashelf.fedora.client.response.IngestResponse

    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();
  }
View Full Code Here

Examples of com.yourmediashelf.fedora.client.response.IngestResponse

                        m_logger.info("PID already found in Fedora, skipping [" + sipFile.getName() + "/" + pid + "]");
                        continue;
                    }

                    // finally execute the ingest
                    IngestResponse ingestResponse = FedoraClient.ingest().content(sipFile).format("info:fedora/fedora-system:METSFedoraExt-1.1").execute(m_fedoraClient);
                    m_logger.info("Item successfully ingested [" + sipFile + "] / [" + ingestResponse.getPid() + "]");
                    itemsDone++;

                    // update processed items
                    setItemsDone(itemsDone);
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.