Package org.fao.oaipmh.responses

Examples of org.fao.oaipmh.responses.Header


    {
      ListIdentifiersResponse response = req.execute();

      while (response.hasNext())
      {
        Header h = response.next();

        if (!h.isDeleted())
          records.add(new RecordInfo(h, s.prefix));
      }

      log.info("Records added to result list : "+ records.size());
View Full Code Here


            }
        }

        //--- build header and set some infos

        Header h = new Header();

        h.setIdentifier(uuid);
        h.setDateStamp(new ISODate(changeDate));

        for (MetadataCategory metadataCategory : metadata.getCategories()) {
            h.addSet(metadataCategory.getName());
        }

        //--- build and return record

        Record r = new Record();
View Full Code Here

    while (num<Lib.MAX_RECORDS && pos < result.getIds().size())
    {
      int id = result.getIds().get(pos);

      Header h = buildHeader(context, id, result.prefix);

      if (h != null)
      {
        res.addHeader(h);
        num++;
View Full Code Here

      }
    }

    //--- build header and set some infos

    Header h = new Header();

    h.setIdentifier(uuid);
    h.setDateStamp(changeDate);

    //--- find and add categories (here called sets)

    for (MetadataCategory category : metadata.getCategories())
    {
      h.addSet(category.getName());
    }

    return h;
  }
View Full Code Here

  //---
  //---------------------------------------------------------------------------

  protected Object createObject(Element object)
  {
    return new Header(object);
  }
View Full Code Here

TOP

Related Classes of org.fao.oaipmh.responses.Header

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.