Package se.kb.oai.pmh

Examples of se.kb.oai.pmh.OaiPmhServer.listIdentifiers()


       
        OaiPmhServer server = new OaiPmhServer(baseURL);
        try {
          IdentifiersList list;
          if (q == null) {
            list = server.listIdentifiers(metaDataPrefix);           
          } else {
            if (!(q instanceof QueryDateRange))
              throw new QueryValidationException("Unsupported query type");
           
            list = server.listIdentifiers(metaDataPrefix, dateFormat.format(((QueryDateRange) q).getStartDate().getTime()), dateFormat.format(((QueryDateRange) q).getEndDate().getTime()), set)
View Full Code Here


            list = server.listIdentifiers(metaDataPrefix);           
          } else {
            if (!(q instanceof QueryDateRange))
              throw new QueryValidationException("Unsupported query type");
           
            list = server.listIdentifiers(metaDataPrefix, dateFormat.format(((QueryDateRange) q).getStartDate().getTime()), dateFormat.format(((QueryDateRange) q).getEndDate().getTime()), set)
          }
         
          for (Header header : list.asList()) {
            try {
              resultList.add(new URI(header.getIdentifier()));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.