Package org.fao.oaipmh.responses

Examples of org.fao.oaipmh.responses.ListIdentifiersResponse


    log.info("Searching on : "+ params.name);

    try
    {
      ListIdentifiersResponse response = req.execute();

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

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


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

  public ListResponse processRequest(TokenListRequest req, int pos, SearchResult result, ServiceContext context) throws Exception  {

    //--- loop to retrieve metadata   
    ListIdentifiersResponse res = new ListIdentifiersResponse();

    int num = 0;

    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++;
      }

      pos++;
    }
View Full Code Here

      if (set != null)
        params.put("set", set);
    }

    return new ListIdentifiersResponse(this, sendRequest(params));
  }
View Full Code Here

TOP

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

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.