コード例 #1
0
 /**
  * get a resource xml.
  *
  * @param id the id of the resource.
  * @return The FOXML as String.
  * @throws Exception If the service call fails.
  */
 public String export(final String id) throws Exception {
   com.yourmediashelf.fedora.client.FedoraClient restClient = getFedoraRestClient();
   FedoraResponse response =
       com.yourmediashelf.fedora.client.FedoraClient.export(id)
           .format(Constants.FOXML_FORMAT)
           .context("public")
           .execute(restClient);
   return toString(response.getEntityInputStream());
 }