Package org.fao.oaipmh.responses

Examples of org.fao.oaipmh.responses.ListRecordsResponse



  public ListRecordsResponse processRequest(TokenListRequest req, int pos, SearchResult result, ServiceContext context) throws Exception  {
  
    int num = 0;
    ListRecordsResponse res = new ListRecordsResponse();

    //--- loop to retrieve metadata

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

      Record r = buildRecord(context, id, result.prefix);

      if (r != null)
      {
        res.addRecord(r);
        num++;
      }

      pos++;
    }
View Full Code Here


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

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

TOP

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

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.