Examples of writeXMLHeader()


Examples of org.apache.catalina.util.XMLWriter.writeXMLHeader()

        resp.setContentType("text/xml; charset=UTF-8");

        // Create multistatus object
        XMLWriter generatedXML = new XMLWriter(resp.getWriter());
        generatedXML.writeXMLHeader();

        generatedXML.writeElement(null, "multistatus"
                                  + generateNamespaceDeclarations(),
                                  XMLWriter.OPENING);
View Full Code Here

Examples of org.apache.catalina.util.XMLWriter.writeXMLHeader()

                    Enumeration lockPathsList = lockPaths.elements();

                    resp.setStatus(WebdavStatus.SC_CONFLICT);

                    XMLWriter generatedXML = new XMLWriter();
                    generatedXML.writeXMLHeader();

                    generatedXML.writeElement
                        (null, "multistatus" + generateNamespaceDeclarations(),
                         XMLWriter.OPENING);
View Full Code Here

Examples of org.apache.catalina.util.XMLWriter.writeXMLHeader()

        }

        // Set the status, then generate the XML response containing
        // the lock information
        XMLWriter generatedXML = new XMLWriter();
        generatedXML.writeXMLHeader();
        generatedXML.writeElement(null, "prop"
                                  + generateNamespaceDeclarations(),
                                  XMLWriter.OPENING);

        generatedXML.writeElement(null, "lockdiscovery",
View Full Code Here

Examples of org.apache.catalina.util.XMLWriter.writeXMLHeader()

        String absoluteUri = req.getRequestURI();
        String relativePath = getRelativePath(req);

        XMLWriter generatedXML = new XMLWriter();
        generatedXML.writeXMLHeader();

        generatedXML.writeElement(null, "multistatus"
                                  + generateNamespaceDeclarations(),
                                  XMLWriter.OPENING);
View Full Code Here

Examples of org.apache.catalina.util.XMLWriter.writeXMLHeader()

                            resp.setStatus(WebdavStatus.SC_MULTI_STATUS);
                            resp.setContentType("text/xml; charset=UTF-8");
                            // Create multistatus object
                            XMLWriter generatedXML =
                                new XMLWriter(resp.getWriter());
                            generatedXML.writeXMLHeader();
                            generatedXML.writeElement("D", DEFAULT_NAMESPACE,
                                    "multistatus", XMLWriter.OPENING);
                            parseLockNullProperties
                                (req, generatedXML, lockNullPath, type,
                                 properties);
View Full Code Here

Examples of org.apache.catalina.util.XMLWriter.writeXMLHeader()

        resp.setContentType("text/xml; charset=UTF-8");

        // Create multistatus object
        XMLWriter generatedXML = new XMLWriter(resp.getWriter());
        generatedXML.writeXMLHeader();

        generatedXML.writeElement("D", DEFAULT_NAMESPACE, "multistatus",
                XMLWriter.OPENING);

        if (depth == 0) {
View Full Code Here

Examples of org.apache.qpid.info.util.XMLWriter.writeXMLHeader()

     * @return A StringBuffer object containing an XML representation of the Info map
     */
    public StringBuffer toXML()
    {
        XMLWriter xw = new XMLWriter(new StringBuffer());
        xw.writeXMLHeader();
        Map<String, String> attr = new HashMap<String, String>();
        xw.writeOpenTag("qpidinfo", attr);
        String key;
        for (Iterator<String> it = _info.keySet().iterator(); it.hasNext();)
        {
View Full Code Here

Examples of org.apache.util.XMLPrinter.writeXMLHeader()

     * <p>The default behavior simply returns an empty body.</p>
     */
    protected String generateRequestBody() {

        XMLPrinter printer = new XMLPrinter();
        printer.writeXMLHeader();
        printer.writeElement("D", "DAV:", "acl",
                             XMLPrinter.OPENING);

        Enumeration aceList = aces.elements();

View Full Code Here

Examples of org.apache.util.XMLPrinter.writeXMLHeader()

    /**
     * @see org.apache.webdav.lib.methods.XMLResponseMethodBase#generateRequestBody()
     */
    protected String generateRequestBody() {
        XMLPrinter printer = new XMLPrinter();
        printer.writeXMLHeader();

        switch (reportType) {
            case PRINCIPAL_PROPERTY_SEARCH :
                generatePrincipalPropertySearchBody(printer);
                break;
View Full Code Here

Examples of org.apache.util.XMLPrinter.writeXMLHeader()

     * <p>The default behavior simply returns an empty body.</p>
     */
    protected String generateRequestBody() {
        if (target != null) {
            XMLPrinter printer = new XMLPrinter();
            printer.writeXMLHeader();
            printer.writeElement("D", "DAV:", "update", XMLPrinter.OPENING);
            printer.writeElement("D", "version", XMLPrinter.OPENING);
            printer.writeElement("D", "href", XMLPrinter.OPENING);
            printer.writeText(target);
            printer.writeElement("D", "href", XMLPrinter.CLOSING);
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.