Package java.io

Examples of java.io.OutputStreamWriter.writeStartElement()


    String hostName = InetAddress.getLocalHost().getHostName();
    writer.writeStartElement("meta");
    writer.writeAttribute("hostname", hostName);
    writer.writeEndElement(); // close meta tag
    if (webSession != null) {
      writer.writeStartElement("meta");
      writer.writeAttribute("jsessionid", webSession.getId());
      writer.writeEndElement(); // close meta tag
      writer.writeStartElement("meta");
      writer.writeAttribute("urlencoded", ";sid=" + webSession.getId());
      writer.writeEndElement(); // close meta tag
View Full Code Here


    writer.writeEndElement(); // close meta tag
    if (webSession != null) {
      writer.writeStartElement("meta");
      writer.writeAttribute("jsessionid", webSession.getId());
      writer.writeEndElement(); // close meta tag
      writer.writeStartElement("meta");
      writer.writeAttribute("urlencoded", ";sid=" + webSession.getId());
      writer.writeEndElement(); // close meta tag
    }
    for (Entry<String, String> entry : this.metaMap.entrySet()) {
      writer.writeStartElement("meta");
View Full Code Here

      writer.writeStartElement("meta");
      writer.writeAttribute("urlencoded", ";sid=" + webSession.getId());
      writer.writeEndElement(); // close meta tag
    }
    for (Entry<String, String> entry : this.metaMap.entrySet()) {
      writer.writeStartElement("meta");
      writer.writeAttribute(entry.getKey(), entry.getValue());
      writer.writeEndElement(); // close meta tag
    }
    for (Map<String, String> map : this.metaMapList) {
      writer.writeStartElement("meta");
View Full Code Here

      writer.writeStartElement("meta");
      writer.writeAttribute(entry.getKey(), entry.getValue());
      writer.writeEndElement(); // close meta tag
    }
    for (Map<String, String> map : this.metaMapList) {
      writer.writeStartElement("meta");
      for (Entry<String, String> entry : map.entrySet()) {
        writer.writeAttribute(entry.getKey(), entry.getValue());
      }
      writer.writeEndElement(); // close meta tag
    }
View Full Code Here

        writer.writeAttribute(entry.getKey(), entry.getValue());
      }
      writer.writeEndElement(); // close meta tag
    }
    // write any query params back
    writer.writeStartElement("query");
    Map<String, List<String>> parameterMap = request.getParameterMap();
    for (Entry<String, List<String>> parameter : parameterMap.entrySet()) {
      String name = parameter.getKey();
      if ("password".equals(name)) {
        continue;
View Full Code Here

      if ("password".equals(name)) {
        continue;
      }
      List<String> values = parameter.getValue();
      for (String value : values) {
        writer.writeStartElement("param");
        writer.writeAttribute(name, value);
        writer.writeEndElement(); // close param
      }
    }
    writer.writeEndElement(); // close query
View Full Code Here

        writer.writeEndElement(); // close param
      }
    }
    writer.writeEndElement(); // close query
    writer.writeEndElement(); // close head
    writer.writeStartElement("body");
    this.writeSystem(writer);
    this.loadBody(writer, request);
    writer.writeEndElement(); // close body tag
    writer.writeEndElement(); // close root tag sc-web
    writer.writeEndDocument();
View Full Code Here

    }
    WebSession webSession = request.getSession(false);
    XMLOutputFactory factory = XMLOutputFactory.newInstance();
    XMLStreamWriter writer = factory.createXMLStreamWriter(os);
    writer.writeStartDocument();
    writer.writeStartElement("sc-web");
    writer.writeStartElement("head");
    // write url path
    String url = request.getURL();
    if (url != null) {
      int qPos = url.indexOf("?");
View Full Code Here

    WebSession webSession = request.getSession(false);
    XMLOutputFactory factory = XMLOutputFactory.newInstance();
    XMLStreamWriter writer = factory.createXMLStreamWriter(os);
    writer.writeStartDocument();
    writer.writeStartElement("sc-web");
    writer.writeStartElement("head");
    // write url path
    String url = request.getURL();
    if (url != null) {
      int qPos = url.indexOf("?");
      if (qPos >= 0) {
View Full Code Here

      // check if ajax content call
      String id = request.getParameter("id");
      if (id != null) {
        url = Constants.SLASH + id;
      }
      writer.writeStartElement("meta");
      writer.writeAttribute("path", url);
      writer.writeEndElement(); // close meta tag
    }
    // write query string
    writer.writeStartElement("meta");
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.