Package ORG.oclc.oai.server.catalog

Examples of ORG.oclc.oai.server.catalog.AbstractCatalog


            extensionPath = properties.getProperty("OAIHandler.extensionPath", "/extension");
            if (properties.getProperty("OAIHandler.serviceUnavailable") != null) {
                this.serviceUnavailable = true;
            } else {
                attributes.put("OAIHandler.version", VERSION);
                AbstractCatalog abstractCatalog = AbstractCatalog.factory(properties);
                attributes.put("OAIHandler.catalog", abstractCatalog);
            }
            if (properties.getProperty("OAIHandler.monitor") != null) {
                this.monitor = true;
            }
View Full Code Here


                                   HttpServletRequest request,
                                   HttpServletResponse response,
                                   Transformer serverTransformer)
        throws OAIInternalServerError, TransformerException {
        Properties properties = (Properties)context.get("OAIHandler.properties");
  AbstractCatalog abstractCatalog =
      (AbstractCatalog)context.get("OAIHandler.catalog");
  String baseURL = properties.getProperty("OAIHandler.baseURL");
  if (baseURL == null) {
      try {
    baseURL = request.getRequestURL().toString();
      } catch (java.lang.NoSuchMethodError f) {
    baseURL = HttpUtils.getRequestURL(request).toString();
      }
  }
        StringBuffer sb = new StringBuffer();
        String identifier = request.getParameter("identifier");
        String metadataPrefix = request.getParameter("metadataPrefix");

        if (debug) {
            System.out.println("GetRecord.constructGetRecord: identifier=" +
                               identifier);
            System.out.println("GetRecord.constructGetRecord: metadataPrefix="
                               + metadataPrefix);
        }
        sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
  String styleSheet = properties.getProperty("OAIHandler.styleSheet");
  if (styleSheet != null) {
      sb.append("<?xml-stylesheet type=\"text/xsl\" href=\"");
      sb.append(styleSheet);
      sb.append("\"?>");
  }
        sb.append("<OAI-PMH xmlns=\"http://www.openarchives.org/OAI/2.0/\"");
        sb.append(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"");
  String extraXmlns = properties.getProperty("OAIHandler.extraXmlns");
  if (extraXmlns != null)
      sb.append(" ").append(extraXmlns);
        sb.append(" xsi:schemaLocation=\"http://www.openarchives.org/OAI/2.0/");
        sb.append(" http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd\">");
        sb.append("<responseDate>");
        sb.append(createResponseDate(new Date()));
        sb.append("</responseDate>");
//         sb.append("<requestURL>");
//         sb.append(getRequestURL(request));
//         sb.append("</requestURL>");
        Crosswalks crosswalks = abstractCatalog.getCrosswalks();
  try {
      if (metadataPrefix == null || metadataPrefix.length() == 0
    || identifier == null || identifier.length() == 0
    || hasBadArguments(request, validParamNames.iterator(), validParamNames)) {
    throw new BadArgumentException();
      }
      else if (!crosswalks.containsValue(metadataPrefix)) {
    throw new CannotDisseminateFormatException(metadataPrefix);
      } else {
    String record = abstractCatalog.getRecord(identifier, metadataPrefix);
    if (record != null) {
        sb.append(getRequestElement(request, validParamNames, baseURL));
        sb.append("<GetRecord>");
        sb.append(record);
        sb.append("</GetRecord>");
View Full Code Here

                                   HttpServletRequest request,
                                   HttpServletResponse response,
                                   Transformer serverTransformer)
        throws OAIInternalServerError, TransformerException {
        Properties properties = (Properties)context.get("OAIHandler.properties");
  AbstractCatalog abstractCatalog =
      (AbstractCatalog)context.get("OAIHandler.catalog");
  String baseURL = (String)properties.getProperty("OAIHandler.baseURL");
  if (baseURL == null) {
      try {
    baseURL = request.getRequestURL().toString();
      } catch (java.lang.NoSuchMethodError f) {
    baseURL = HttpUtils.getRequestURL(request).toString();
      }
  }
        StringBuffer sb = new StringBuffer();
        String identifier = request.getParameter("identifier");
        sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
  String styleSheet = properties.getProperty("OAIHandler.styleSheet");
  if (styleSheet != null) {
      sb.append("<?xml-stylesheet type=\"text/xsl\" href=\"");
      sb.append(styleSheet);
      sb.append("\"?>");
  }
        sb.append("<OAI-PMH xmlns=\"http://www.openarchives.org/OAI/2.0/\"");
        sb.append(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"");
        sb.append(" xsi:schemaLocation=\"http://www.openarchives.org/OAI/2.0/");
        sb.append(" http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd\">");
        sb.append("<responseDate>");
  sb.append(createResponseDate(new Date()));
  sb.append("</responseDate>");
//   sb.append("<requestURL>");
//         sb.append(getRequestURL(request));
//   sb.append("</requestURL>");
  sb.append(getRequestElement(request, validParamNames, baseURL));
  if (hasBadArguments(request, requiredParamNames.iterator(),
          validParamNames)) {
      sb.append(new BadArgumentException().getMessage());
  } else {
      Crosswalks crosswalks = abstractCatalog.getCrosswalks();
      if (identifier == null || identifier.length() == 0) {
    Iterator iterator = crosswalks.iterator();
    sb.append("<ListMetadataFormats>");
    while (iterator.hasNext()) {
        Map.Entry entry = (Map.Entry)iterator.next();
        String oaiSchemaLabel = (String)entry.getKey();
        CrosswalkItem crosswalkItem = (CrosswalkItem)entry.getValue();
        Crosswalk crosswalk = crosswalkItem.getCrosswalk();
//         StringTokenizer tokenizer = new StringTokenizer(crosswalk.getSchemaLocation());
//         String namespaceURI = tokenizer.nextToken();
//         String schemaURL = tokenizer.nextToken();
        String[] tokenizer = split(crosswalk.getSchemaLocation());
        String namespaceURI = null;
        String schemaURL = null;
        if (tokenizer.length == 1) {
      schemaURL = tokenizer[0];
        } else if (tokenizer.length > 1) {
      namespaceURI = tokenizer[0];
      schemaURL = tokenizer[1];
        }
        sb.append("<metadataFormat>");
        sb.append("<metadataPrefix>");
        sb.append(oaiSchemaLabel);
        sb.append("</metadataPrefix>");
        sb.append("<schema>");
        sb.append(schemaURL);
        sb.append("</schema>");
        sb.append("<metadataNamespace>");
        sb.append(namespaceURI);
        sb.append("</metadataNamespace>");
        sb.append("</metadataFormat>");
    }
    sb.append("</ListMetadataFormats>");
      } else {
    try {
        Vector schemaLocations = abstractCatalog.getSchemaLocations(identifier);
        sb.append("<ListMetadataFormats>");
        for (int i=0; i<schemaLocations.size(); ++i) {
      String schemaLocation = (String)schemaLocations.elementAt(i);
//       StringTokenizer tokenizer = new StringTokenizer(schemaLocation);
//       String namespaceURI = tokenizer.nextToken();
View Full Code Here

                                   HttpServletResponse response,
                                   Transformer serverTransformer)
  throws OAIInternalServerError, TransformerException {
        Properties properties =
      (Properties)context.get("OAIHandler.properties");
  AbstractCatalog abstractCatalog =
      (AbstractCatalog)context.get("OAIHandler.catalog");
  boolean xmlEncodeSetSpec = "true".equalsIgnoreCase(properties.getProperty("OAIHandler.xmlEncodeSetSpec"));
  boolean urlEncodeSetSpec = !"false".equalsIgnoreCase(properties.getProperty("OAIHandler.urlEncodeSetSpec"));
  String baseURL = properties.getProperty("OAIHandler.baseURL");
  if (baseURL == null) {
      try {
    baseURL = request.getRequestURL().toString();
      } catch (java.lang.NoSuchMethodError f) {
    baseURL = HttpUtils.getRequestURL(request).toString();
      }
  }
  StringBuffer sb = new StringBuffer();
  String oldResumptionToken = request.getParameter("resumptionToken");
  String metadataPrefix = request.getParameter("metadataPrefix");

  if (metadataPrefix != null && metadataPrefix.length() == 0)
      metadataPrefix = null;
 
  sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
  String styleSheet = properties.getProperty("OAIHandler.styleSheet");
  if (styleSheet != null) {
      sb.append("<?xml-stylesheet type=\"text/xsl\" href=\"");
      sb.append(styleSheet);
      sb.append("\"?>");
  }
  sb.append("<OAI-PMH xmlns=\"http://www.openarchives.org/OAI/2.0/\"");
  sb.append(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"");
  sb.append(" xsi:schemaLocation=\"http://www.openarchives.org/OAI/2.0/");
  sb.append(" http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd\">");
  sb.append("<responseDate>");
  sb.append(createResponseDate(new Date()));
  sb.append("</responseDate>");
//   sb.append("<requestURL>");
//   sb.append(getRequestURL(request));
//   sb.append("</requestURL>");
           
  if (!abstractCatalog.isHarvestable()) {
      sb.append("<request verb=\"ListIdentifiers\">");
      sb.append(baseURL);
      sb.append("</request>");
      sb.append("<error code=\"badArgument\">Database is unavailable for harvesting</error>");
  } else {
      ArrayList validParamNames = null;
      ArrayList requiredParamNames = null;
      Map listIdentifiersMap = null;
      if (oldResumptionToken == null) {
    validParamNames = validParamNames1;
    requiredParamNames = requiredParamNames1;
    String from = request.getParameter("from");
    String until = request.getParameter("until");
    try {
        if (from != null && from.length() > 0 && from.length() < 10) {
      throw new BadArgumentException();
        }
        if (until != null && until.length() > 0 && until.length() < 10) {
      throw new BadArgumentException();
        }
        if (from != null && until != null && from.length() != until.length()) {
      throw new BadArgumentException();
        }
        if (from == null || from.length() == 0) {
      from = "0001-01-01";
        }
        if (until == null || until.length() == 0) {
      until = "9999-12-31";
        }
        from = abstractCatalog.toFinestFrom(from);
        until = abstractCatalog.toFinestUntil(until);
        if (from.compareTo(until) > 0)
      throw new BadArgumentException();
        String set = request.getParameter("set");
                    if (set != null) {
                        if (set.length() == 0) set = null;
                        else if (urlEncodeSetSpec) set = set.replace(' ', '+');
                    }
        Crosswalks crosswalks = abstractCatalog.getCrosswalks();
        if (metadataPrefix == null) {
      throw new BadArgumentException();
        }
       
        if (!crosswalks.containsValue(metadataPrefix)) {
      throw new CannotDisseminateFormatException(metadataPrefix);
        } else {
      listIdentifiersMap = abstractCatalog.listIdentifiers(from, until, set,
                       metadataPrefix);
        }
    } catch (NoItemsMatchException e) {
        sb.append(getRequestElement(request, validParamNames, baseURL, xmlEncodeSetSpec));
        sb.append(e.getMessage());
    } catch (BadArgumentException e) {
        sb.append("<request verb=\"ListIdentifiers\">");
//         sb.append(HttpUtils.getRequestURL(request));
        sb.append(baseURL);
        sb.append("</request>");
        sb.append(e.getMessage());
//     } catch (BadGranularityException e) {
//         sb.append(getRequestElement(request));
//         sb.append(e.getMessage());
    } catch (CannotDisseminateFormatException e) {
        sb.append(getRequestElement(request, validParamNames, baseURL, xmlEncodeSetSpec));
        sb.append(e.getMessage());
    } catch (NoSetHierarchyException e) {
        sb.append(getRequestElement(request, validParamNames, baseURL, xmlEncodeSetSpec));
        sb.append(e.getMessage());
    }
      } else {
    validParamNames = validParamNames2;
    requiredParamNames = requiredParamNames2;
    if (hasBadArguments(request, requiredParamNames.iterator(), validParamNames)) {
        sb.append(getRequestElement(request, validParamNames, baseURL, xmlEncodeSetSpec));
        sb.append(new BadArgumentException().getMessage());
    } else {
        try {
      listIdentifiersMap = abstractCatalog.listIdentifiers(oldResumptionToken);
        } catch (BadResumptionTokenException e) {
      sb.append(getRequestElement(request, validParamNames, baseURL, xmlEncodeSetSpec));
      sb.append(e.getMessage());
        }
    }
View Full Code Here

    public static String construct(HashMap context,
                                   HttpServletRequest request, HttpServletResponse response,
                                   Transformer serverTransformer)
        throws FileNotFoundException, TransformerException {
        Properties properties = (Properties)context.get("OAIHandler.properties");
  AbstractCatalog abstractCatalog =
      (AbstractCatalog)context.get("OAIHandler.catalog");
  String baseURL = (String)properties.getProperty("OAIHandler.baseURL");
  if (baseURL == null) {
      try {
    baseURL = request.getRequestURL().toString();
      } catch (java.lang.NoSuchMethodError f) {
    baseURL = HttpUtils.getRequestURL(request).toString();
      }
  }
        StringBuffer sb = new StringBuffer();
        String identifier = request.getParameter("identifier");

        if (debug) {
            System.out.println("Redirect.construct: identifier=" +
                               identifier);
        }
        Crosswalks crosswalks = abstractCatalog.getCrosswalks();
  try {
      if (identifier == null || identifier.length() == 0) {
                if (debug) System.out.println("Bad argument");
    throw new BadArgumentException();
      }
      else if (!crosswalks.containsValue("oai_dc")) {
                if (debug) System.out.println("crosswalk not present: oai_dc");
    throw new CannotDisseminateFormatException("oai_dc");
      } else {
     String metadata = abstractCatalog.getRecord(identifier, "oai_dc");
     if (metadata != null) {
                    sb.append(metadata);
      } else {
                    if (debug) System.out.println("ID does not exist");
          throw new IdDoesNotExistException(identifier);
View Full Code Here

                                   Transformer serverTransformer)
        throws OAIInternalServerError, TransformerException {
        if (debug) System.out.println("ListRecords.construct: entered");
 
        Properties properties = (Properties)context.get("OAIHandler.properties");
        AbstractCatalog abstractCatalog = (AbstractCatalog)context.get("OAIHandler.catalog");
  boolean xmlEncodeSetSpec = "true".equalsIgnoreCase((String)properties.getProperty("OAIHandler.xmlEncodeSetSpec"));
  boolean urlEncodeSetSpec = !"false".equalsIgnoreCase((String)properties.getProperty("OAIHandler.urlEncodeSetSpec"));
  String baseURL = (String)properties.getProperty("OAIHandler.baseURL");
  if (baseURL == null) {
      try {
    baseURL = request.getRequestURL().toString();
      } catch (java.lang.NoSuchMethodError f) {
    baseURL = HttpUtils.getRequestURL(request).toString();
      }
  }
        StringBuffer sb = new StringBuffer();
        String oldResumptionToken = request.getParameter("resumptionToken");
  String metadataPrefix = request.getParameter("metadataPrefix");
 
  if (metadataPrefix != null && metadataPrefix.length() == 0)
      metadataPrefix = null;
 
        sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
  String styleSheet = properties.getProperty("OAIHandler.styleSheet");
  if (styleSheet != null) {
      sb.append("<?xml-stylesheet type=\"text/xsl\" href=\"");
      sb.append(styleSheet);
      sb.append("\"?>");
  }
        sb.append("<OAI-PMH xmlns=\"http://www.openarchives.org/OAI/2.0/\"");
        sb.append(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"");
  String extraXmlns = properties.getProperty("OAIHandler.extraXmlns");
  if (extraXmlns != null)
      sb.append(" ").append(extraXmlns);
        sb.append(" xsi:schemaLocation=\"http://www.openarchives.org/OAI/2.0/");
        sb.append(" http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd\">");
        sb.append("<responseDate>");
  sb.append(createResponseDate(new Date()));
  sb.append("</responseDate>");
//         sb.append("<requestURL>");
//         sb.append(getRequestURL(request));
//         sb.append("</requestURL>");
 
  if (!abstractCatalog.isHarvestable()) {
      sb.append("<request verb=\"ListRecords\">");
      sb.append(baseURL);
      sb.append("</request>");
      sb.append("<error code=\"badArgument\">Database is unavailable for harvesting</error>");
  } else {
//       if (debug) {
//     System.gc();
//     System.gc();
//     Runtime rt = Runtime.getRuntime();
//     long freeMemoryK = rt.freeMemory() / 1024;
//     long totalMemoryK = rt.totalMemory() / 1024;
//     System.out.print("ListRecords.construct: " + oldResumptionToken);
//     System.out.print(" freeMemory=" + freeMemoryK / 1024.0 + "M");
//     System.out.print(" of " + totalMemoryK / 1024.0 + "M ");
//     System.out.println("(" + (100 * freeMemoryK) / totalMemoryK + "%)");
//       }
 
      Map listRecordsMap = null;
     
      ArrayList validParamNames = null;
      ArrayList requiredParamNames = null;
      if (oldResumptionToken == null) {
    validParamNames = validParamNames1;
    requiredParamNames = requiredParamNames1;
    String from = request.getParameter("from");
    String until = request.getParameter("until");
    try {
        if (from != null && from.length() > 0 && from.length() < 10) {
      throw new BadArgumentException();
        }
        if (until != null && until.length() > 0 && until.length() < 10) {
      throw new BadArgumentException();
        }
        if (from != null && until != null && from.length() != until.length()) {
      throw new BadArgumentException();
        }
        if (from == null || from.length() == 0) {
      from = "0001-01-01";
        }
        if (until == null || until.length() == 0) {
      until = "9999-12-31";
        }
        from = abstractCatalog.toFinestFrom(from);
        until = abstractCatalog.toFinestUntil(until);
        if (from.compareTo(until) > 0)
      throw new BadArgumentException();
        String set = request.getParameter("set");
                    if (set != null) {
                        if (set.length() == 0) set = null;
                        else if (urlEncodeSetSpec) set = set.replace(' ', '+');
                    }
        Crosswalks crosswalks = abstractCatalog.getCrosswalks();
        if (metadataPrefix == null) {
      throw new BadArgumentException();
        }
        if (!crosswalks.containsValue(metadataPrefix)) {
      throw new CannotDisseminateFormatException(metadataPrefix);
        } else {
      listRecordsMap = abstractCatalog.listRecords(from, until, set,
                     metadataPrefix);
        }
    } catch (NoItemsMatchException e) {
        sb.append(getRequestElement(request, validParamNames, baseURL, xmlEncodeSetSpec));
        sb.append(e.getMessage());
    } catch (BadArgumentException e) {
        sb.append("<request verb=\"ListRecords\">");
        sb.append(baseURL);
        sb.append("</request>");
        sb.append(e.getMessage());
//     } catch (BadGranularityException e) {
//         sb.append(getRequestElement(request));
//         sb.append(e.getMessage());
    } catch (CannotDisseminateFormatException e) {
        sb.append(getRequestElement(request, validParamNames, baseURL, xmlEncodeSetSpec));
        sb.append(e.getMessage());
    } catch (NoSetHierarchyException e) {
        sb.append(getRequestElement(request, validParamNames, baseURL, xmlEncodeSetSpec));
        sb.append(e.getMessage());
    }
      } else {
    validParamNames = validParamNames2;
    requiredParamNames = requiredParamNames2;
    if (hasBadArguments(request, requiredParamNames.iterator(), validParamNames)) {
        sb.append(getRequestElement(request, validParamNames, baseURL, xmlEncodeSetSpec));
        sb.append(new BadArgumentException().getMessage());
    } else {
        try {
      listRecordsMap = abstractCatalog.listRecords(oldResumptionToken);
        } catch (BadResumptionTokenException e) {
      sb.append(getRequestElement(request, validParamNames, baseURL, xmlEncodeSetSpec));
      sb.append(e.getMessage());
        }
    }
View Full Code Here

    public static String construct(HashMap context,
                                   HttpServletRequest request, HttpServletResponse response,
                                   Transformer serverTransformer)
        throws FileNotFoundException, TransformerException {
        Properties properties = (Properties)context.get("OAIHandler.properties");
  AbstractCatalog abstractCatalog =
      (AbstractCatalog)context.get("OAIHandler.catalog");
  String baseURL = (String)properties.getProperty("OAIHandler.baseURL");
  if (baseURL == null) {
      try {
    baseURL = request.getRequestURL().toString();
      } catch (java.lang.NoSuchMethodError f) {
    baseURL = HttpUtils.getRequestURL(request).toString();
      }
  }
        StringBuffer sb = new StringBuffer();
        String identifier = request.getParameter("identifier");
        String metadataPrefix = request.getParameter("metadataPrefix");

        if (debug) {
            System.out.println("GetMetadata.constructGetMetadata: identifier=" +
                               identifier);
            System.out.println("GetMetadata.constructGetMetadata: metadataPrefix="
                               + metadataPrefix);
        }
        Crosswalks crosswalks = abstractCatalog.getCrosswalks();
        sb.append("<?xml version=\"1.0\" encoding=\"");
        String encoding = crosswalks.getEncoding(metadataPrefix);
        if (encoding != null)
            sb.append(encoding);
        else
            sb.append("UTF-8");
        sb.append("\" ?>\n");
       
        String docType = crosswalks.getDocType(metadataPrefix);
        if (docType != null) {
            sb.append(docType);
            sb.append("\n");
        }
  try {
      if (metadataPrefix == null || metadataPrefix.length() == 0
    || identifier == null || identifier.length() == 0) {
                if (debug) System.out.println("Bad argument");
    throw new BadArgumentException();
      }
      else if (!crosswalks.containsValue(metadataPrefix)) {
                if (debug) System.out.println("crosswalk not present: " + metadataPrefix);
    throw new CannotDisseminateFormatException(metadataPrefix);
      } else {
     String metadata = abstractCatalog.getMetadata(identifier, metadataPrefix);
     if (metadata != null) {
                    sb.append(metadata);
     } else {
                    if (debug) System.out.println("ID does not exist");
         throw new IdDoesNotExistException(identifier);
View Full Code Here

    public static String construct(HashMap context, HttpServletRequest request,
                                   HttpServletResponse response, Transformer serverTransformer)
  throws OAIInternalServerError, TransformerException {
        Properties properties =
      (Properties)context.get("OAIHandler.properties");
  AbstractCatalog abstractCatalog =
      (AbstractCatalog)context.get("OAIHandler.catalog");
  String baseURL = (String)properties.getProperty("OAIHandler.baseURL");
  if (baseURL == null) {
      try {
    baseURL = request.getRequestURL().toString();
      } catch (java.lang.NoSuchMethodError f) {
    baseURL = HttpUtils.getRequestURL(request).toString();
      }
  }
        StringBuffer sb = new StringBuffer();
  String oldResumptionToken = request.getParameter("resumptionToken");
        sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
  String styleSheet = properties.getProperty("OAIHandler.styleSheet");
  if (styleSheet != null) {
      sb.append("<?xml-stylesheet type=\"text/xsl\" href=\"");
      sb.append(styleSheet);
      sb.append("\"?>");
  }
        sb.append("<OAI-PMH xmlns=\"http://www.openarchives.org/OAI/2.0/\"");
        sb.append(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"");
        sb.append(" xsi:schemaLocation=\"http://www.openarchives.org/OAI/2.0/");
        sb.append(" http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd\">");
        sb.append("<responseDate>");
  sb.append(createResponseDate(new Date()));
  sb.append("</responseDate>");
//         sb.append("<requestURL>");
//         sb.append(getRequestURL(request));
//         sb.append("</requestURL>");
  sb.append(getRequestElement(request, validParamNames, baseURL));
  Map listSetsMap = null;
  if (hasBadArguments(request, requiredParamNames.iterator(),
          validParamNames)) {
      sb.append(new BadArgumentException().getMessage());
  } else {
      try {
    if (oldResumptionToken == null) {
        listSetsMap = abstractCatalog.listSets();
    } else {
        listSetsMap = abstractCatalog.listSets(oldResumptionToken);
    }
    sb.append("<ListSets>");
    Iterator sets = (Iterator)listSetsMap.get("sets");
    while (sets.hasNext()) {
        sb.append((String)sets.next());
View Full Code Here

TOP

Related Classes of ORG.oclc.oai.server.catalog.AbstractCatalog

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.