Package org.znerd.xmlenc

Examples of org.znerd.xmlenc.XMLOutputter.startTag()


      case XML:
        setResponseHeader(response, 200, ContentType.XML.toString());
        XMLOutputter outputter = getXMLOutputter(response.getWriter());
        outputter.startTag("table");
        doElement(outputter, "name", descriptor.getName().toString());
        outputter.startTag("columnfamilies");
        for (Map.Entry<Text, HColumnDescriptor> e:
            descriptor.getFamilies().entrySet()) {
          outputter.startTag("columnfamily");
          doElement(outputter, "name", e.getKey().toString());
          HColumnDescriptor hcd = e.getValue();
View Full Code Here


        outputter.startTag("table");
        doElement(outputter, "name", descriptor.getName().toString());
        outputter.startTag("columnfamilies");
        for (Map.Entry<Text, HColumnDescriptor> e:
            descriptor.getFamilies().entrySet()) {
          outputter.startTag("columnfamily");
          doElement(outputter, "name", e.getKey().toString());
          HColumnDescriptor hcd = e.getValue();
          doElement(outputter, "compression", hcd.getCompression().toString());
          doElement(outputter, "bloomfilter",
            hcd.getBloomFilter() == null? "NONE": hcd.getBloomFilter().toString());
View Full Code Here

    switch (ContentType.getContentType(request.getHeader(ACCEPT))) {
      case XML:
        setResponseHeader(response, tables.length > 0? 200: 204,
            ContentType.XML.toString());
          XMLOutputter outputter = getXMLOutputter(response.getWriter());
          outputter.startTag("tables");
          for (int i = 0; i < tables.length; i++) {
            doElement(outputter, "table", tables[i].getName().toString());
          }
          outputter.endTag();
          outputter.endDocument();
View Full Code Here

    switch (ContentType.getContentType(request.getHeader(ACCEPT))) {
      case XML:
        setResponseHeader(response, startKeys.length > 0? 200: 204,
            ContentType.XML.toString());
          XMLOutputter outputter = getXMLOutputter(response.getWriter());
          outputter.startTag("regions");
          for (int i = 0; i < startKeys.length; i++) {
            doElement(outputter, "region", Bytes.toString(startKeys[i]));
          }
          outputter.endTag();
          outputter.endDocument();
View Full Code Here

      ContentType type = ContentType.getContentType(request.getHeader(ACCEPT));
      switch (type) {
      case XML:
        setResponseHeader(response, 200, ContentType.XML.toString());
        XMLOutputter outputter = getXMLOutputter(response.getWriter());
        outputter.startTag("table");
        doElement(outputter, "name", Bytes.toString(descriptor.getName()));
        outputter.startTag("columnfamilies");
        for (HColumnDescriptor e: descriptor.getFamilies()) {
          outputter.startTag("columnfamily");
          doElement(outputter, "name", Bytes.toString(e.getName()));
View Full Code Here

      case XML:
        setResponseHeader(response, 200, ContentType.XML.toString());
        XMLOutputter outputter = getXMLOutputter(response.getWriter());
        outputter.startTag("table");
        doElement(outputter, "name", Bytes.toString(descriptor.getName()));
        outputter.startTag("columnfamilies");
        for (HColumnDescriptor e: descriptor.getFamilies()) {
          outputter.startTag("columnfamily");
          doElement(outputter, "name", Bytes.toString(e.getName()));
          doElement(outputter, "compression", e.getCompression().toString());
          doElement(outputter, "bloomfilter",
View Full Code Here

        XMLOutputter outputter = getXMLOutputter(response.getWriter());
        outputter.startTag("table");
        doElement(outputter, "name", Bytes.toString(descriptor.getName()));
        outputter.startTag("columnfamilies");
        for (HColumnDescriptor e: descriptor.getFamilies()) {
          outputter.startTag("columnfamily");
          doElement(outputter, "name", Bytes.toString(e.getName()));
          doElement(outputter, "compression", e.getCompression().toString());
          doElement(outputter, "bloomfilter",
              Boolean.toString(e.isBloomfilter()));
          doElement(outputter, "max-versions",
View Full Code Here

      final Map<byte [], Cell> result)
  throws IOException {
    setResponseHeader(response, result.size() > 0? 200: 204,
        ContentType.XML.toString());
    XMLOutputter outputter = getXMLOutputter(response.getWriter());
    outputter.startTag(ROW);
    outputColumnsXml(outputter, result);
    outputter.endTag();
    outputter.endDocument();
    outputter.getWriter().close();
  }
View Full Code Here

      final Map<byte[], Cell[]> result)
  throws IOException {
    setResponseHeader(response, result.size() > 0? 200: 204,
        ContentType.XML.toString());
    XMLOutputter outputter = getXMLOutputter(response.getWriter());
    outputter.startTag(ROW);
    outputColumnsWithMultiVersionsXml(outputter, result);
    outputter.endTag();
    outputter.endDocument();
    outputter.getWriter().close();  
  }
View Full Code Here

    switch (ContentType.getContentType(request.getHeader(ACCEPT))) {
      case XML:
        setResponseHeader(response, tables.length > 0? 200: 204,
            ContentType.XML.toString());
          XMLOutputter outputter = getXMLOutputter(response.getWriter());
          outputter.startTag("tables");
          for (int i = 0; i < tables.length; i++) {
            doElement(outputter, "table", Bytes.toString(tables[i].getName()));
          }
          outputter.endTag();
          outputter.endDocument();
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.