Changeset 5547
- Timestamp:
- 08/09/14 20:48:14 (10 years ago)
- Location:
- FCSSimpleEndpoint/trunk/src/main/java/eu/clarin/sru/server/fcs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
FCSSimpleEndpoint/trunk/src/main/java/eu/clarin/sru/server/fcs/SimpleEndpointSearchEngineBase.java
r5546 r5547 543 543 } 544 544 545 546 // final boolean defaultNS = ((prefix == null) || prefix.isEmpty());547 // if (writeNS) {548 // if (defaultNS) {549 // writer.setDefaultNamespace(FCS_RESOURCE_INFO_NS);550 // } else {551 // writer.setPrefix(prefix, FCS_RESOURCE_INFO_NS);552 // }553 // }554 // writer.writeStartElement(FCS_RESOURCE_INFO_NS, "ResourceInfo");555 // if (writeNS) {556 // if (defaultNS) {557 // writer.writeDefaultNamespace(FCS_RESOURCE_INFO_NS);558 // } else {559 // writer.writeNamespace(prefix, FCS_RESOURCE_INFO_NS);560 // }561 // } )562 //}563 564 // public static void XwriteResourceInfo(XMLStreamWriter writer, String prefix,565 // ResourceInfo resourceInfo) throws XMLStreamException {566 // doWriteResourceInfo(writer, prefix, resourceInfo, true, false);567 // }568 //569 //570 // private static void XdoWriteResourceInfo(XMLStreamWriter writer,571 // String prefix, ResourceInfo resourceInfo, boolean writeNS,572 // boolean recursive) throws XMLStreamException {573 //574 // if (writer == null) {575 // throw new NullPointerException("writer == null");576 // }577 // if (resourceInfo == null) {578 // throw new NullPointerException("resourceInfo == null");579 // }580 //581 // final boolean defaultNS = ((prefix == null) || prefix.isEmpty());582 // if (writeNS) {583 // if (defaultNS) {584 // writer.setDefaultNamespace(FCS_RESOURCE_INFO_NS);585 // } else {586 // writer.setPrefix(prefix, FCS_RESOURCE_INFO_NS);587 // }588 // }589 // writer.writeStartElement(FCS_RESOURCE_INFO_NS, "Resource");590 // if (writeNS) {591 // if (defaultNS) {592 // writer.writeDefaultNamespace(FCS_RESOURCE_INFO_NS);593 // } else {594 // writer.writeNamespace(prefix, FCS_RESOURCE_INFO_NS);595 // }596 // }597 // if (recursive) {598 // /*599 // * HACK: only output @pid for recursive (= explain) requests.600 // * This should be revisited, if we decide to go for the explain601 // * style enumeration of resources.602 // */603 // writer.writeAttribute("pid", resourceInfo.getPid());604 // }605 // if (resourceInfo.hasSubResources()) {606 // writer.writeAttribute("hasSubResources", "true");607 // }608 //609 //610 // if (recursive && resourceInfo.hasSubResources()) {611 // writer.writeStartElement(FCS_RESOURCE_INFO_NS,612 // "ResourceInfoCollection");613 // for (ResourceInfo r : resourceInfo.getSubResources()) {614 // doWriteResourceInfo(writer, prefix, r, writeNS, recursive);615 // }616 // writer.writeEndElement(); // "ResourceCollection" element617 // }618 // writer.writeEndElement(); // "ResourceInfo" element619 // }620 621 545 } // class SimpleEndpointSearchEngineBase -
FCSSimpleEndpoint/trunk/src/main/java/eu/clarin/sru/server/fcs/utils/SimpleEndpointDescriptionParser.java
r5546 r5547 526 526 } 527 527 528 529 // private static List<ResourceInfo> parseLegacy(Document doc)530 // throws SRUConfigException, XPathExpressionException {531 532 528 } // class SimpleResourceInfoInventoryParser
Note: See TracChangeset
for help on using the changeset viewer.