Examples of XmlRequestEntity


Examples of org.apache.jackrabbit.webdav.client.methods.XmlRequestEntity

        DocumentBuilder db = dbf.newDocumentBuilder();
       
        Document doc = db.newDocument();
        doc.appendChild(doc.createElementNS("DAV:", "propfind"));
       
        XmlRequestEntity xmlent = new XmlRequestEntity(doc);
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        xmlent.writeRequest(bos);
       
        Document doc2 = db.parse(new ByteArrayInputStream(bos.toByteArray()));
        Element docelem = doc2.getDocumentElement();
        assertEquals("DAV:", docelem.getNamespaceURI());
    }
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.