Examples of FedoraResponse


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

    }
    return response.getPid();
  }

  public int purge(String pid) {
    FedoraResponse response = null;
    try {
      logger.info("Purge Object: " + pid);
      response = FedoraClient.purgeObject(pid).execute(client);
    } catch (FedoraClientException e) {
      e.printStackTrace();
    }
    if (response != null) {
      return response.getStatus();
    } else {
      return -1;
    }

  }
View Full Code Here

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

    return null;
  }

  public static InputStream getDatastreamDissemination(String pid, String dsid) {
    try {
      FedoraResponse response = FedoraClient.getDatastreamDissemination(
          pid, dsid).execute(client);
      return response.getEntityInputStream();
    } catch (FedoraClientException e) {
      e.printStackTrace();
    }
    return null;
  }
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.