Package com.yourmediashelf.fedora.client.response

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


    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

Related Classes of com.yourmediashelf.fedora.client.response.FedoraResponse

Copyright © 2018 www.massapicom. 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.