Package org.apache.webdav.lib.util

Examples of org.apache.webdav.lib.util.XMLPrinter.writeElement()


         * <p>The default behavior simply returns an empty body.</p>
         */
        protected String generateRequestBody() {
            XMLPrinter printer = new XMLPrinter();
            printer.writeXMLHeader();
            printer.writeElement("D", "DAV:", E_FIRE_EVENTS, XMLPrinter.OPENING);
            for ( Iterator i = events.iterator(); i.hasNext(); ) {
                Event event = (Event)i.next();
                printer.writeElement("D", E_EVENT, XMLPrinter.OPENING);
                Map information = event.getInformation();
                for ( Iterator j = information.entrySet().iterator(); j.hasNext(); ) {
View Full Code Here


            XMLPrinter printer = new XMLPrinter();
            printer.writeXMLHeader();
            printer.writeElement("D", "DAV:", E_FIRE_EVENTS, XMLPrinter.OPENING);
            for ( Iterator i = events.iterator(); i.hasNext(); ) {
                Event event = (Event)i.next();
                printer.writeElement("D", E_EVENT, XMLPrinter.OPENING);
                Map information = event.getInformation();
                for ( Iterator j = information.entrySet().iterator(); j.hasNext(); ) {
                    Map.Entry entry = (Map.Entry)j.next();
                    String name = (String)entry.getKey();
                    String value = (String)entry.getValue();
View Full Code Here

                Map information = event.getInformation();
                for ( Iterator j = information.entrySet().iterator(); j.hasNext(); ) {
                    Map.Entry entry = (Map.Entry)j.next();
                    String name = (String)entry.getKey();
                    String value = (String)entry.getValue();
                    printer.writeElement("D", E_INFORMATION+" "+A_INFORMATION_KEY+"=\""+name+"\"", XMLPrinter.OPENING);
                    printer.writeText(value);
                    printer.writeElement("D", E_INFORMATION, XMLPrinter.CLOSING);
                }
                printer.writeElement("D", E_EVENT, XMLPrinter.CLOSING);
            }
View Full Code Here

                    Map.Entry entry = (Map.Entry)j.next();
                    String name = (String)entry.getKey();
                    String value = (String)entry.getValue();
                    printer.writeElement("D", E_INFORMATION+" "+A_INFORMATION_KEY+"=\""+name+"\"", XMLPrinter.OPENING);
                    printer.writeText(value);
                    printer.writeElement("D", E_INFORMATION, XMLPrinter.CLOSING);
                }
                printer.writeElement("D", E_EVENT, XMLPrinter.CLOSING);
            }
            for ( Iterator i = vetoableEvents.iterator(); i.hasNext(); ) {
                Event event = (Event)i.next();
View Full Code Here

                    String value = (String)entry.getValue();
                    printer.writeElement("D", E_INFORMATION+" "+A_INFORMATION_KEY+"=\""+name+"\"", XMLPrinter.OPENING);
                    printer.writeText(value);
                    printer.writeElement("D", E_INFORMATION, XMLPrinter.CLOSING);
                }
                printer.writeElement("D", E_EVENT, XMLPrinter.CLOSING);
            }
            for ( Iterator i = vetoableEvents.iterator(); i.hasNext(); ) {
                Event event = (Event)i.next();
                printer.writeElement("D", E_VETOABLE_EVENT, XMLPrinter.OPENING);
                Map information = event.getInformation();
View Full Code Here

                }
                printer.writeElement("D", E_EVENT, XMLPrinter.CLOSING);
            }
            for ( Iterator i = vetoableEvents.iterator(); i.hasNext(); ) {
                Event event = (Event)i.next();
                printer.writeElement("D", E_VETOABLE_EVENT, XMLPrinter.OPENING);
                Map information = event.getInformation();
                for ( Iterator j = information.entrySet().iterator(); j.hasNext(); ) {
                    Map.Entry entry = (Map.Entry)j.next();
                    String name = (String)entry.getKey();
                    String value = (String)entry.getValue();
View Full Code Here

                Map information = event.getInformation();
                for ( Iterator j = information.entrySet().iterator(); j.hasNext(); ) {
                    Map.Entry entry = (Map.Entry)j.next();
                    String name = (String)entry.getKey();
                    String value = (String)entry.getValue();
                    printer.writeElement("D", E_INFORMATION+" "+A_INFORMATION_KEY+"=\""+name+"\"", XMLPrinter.OPENING);
                    printer.writeText(value);
                    printer.writeElement("D", E_INFORMATION, XMLPrinter.CLOSING);
                }
                printer.writeElement("D", E_VETOABLE_EVENT, XMLPrinter.CLOSING);
            }
View Full Code Here

                    Map.Entry entry = (Map.Entry)j.next();
                    String name = (String)entry.getKey();
                    String value = (String)entry.getValue();
                    printer.writeElement("D", E_INFORMATION+" "+A_INFORMATION_KEY+"=\""+name+"\"", XMLPrinter.OPENING);
                    printer.writeText(value);
                    printer.writeElement("D", E_INFORMATION, XMLPrinter.CLOSING);
                }
                printer.writeElement("D", E_VETOABLE_EVENT, XMLPrinter.CLOSING);
            }
            printer.writeElement("D", E_FIRE_EVENTS, XMLPrinter.CLOSING);
            return printer.toString();
View Full Code Here

                    String value = (String)entry.getValue();
                    printer.writeElement("D", E_INFORMATION+" "+A_INFORMATION_KEY+"=\""+name+"\"", XMLPrinter.OPENING);
                    printer.writeText(value);
                    printer.writeElement("D", E_INFORMATION, XMLPrinter.CLOSING);
                }
                printer.writeElement("D", E_VETOABLE_EVENT, XMLPrinter.CLOSING);
            }
            printer.writeElement("D", E_FIRE_EVENTS, XMLPrinter.CLOSING);
            return printer.toString();
        }
    }
View Full Code Here

                    printer.writeText(value);
                    printer.writeElement("D", E_INFORMATION, XMLPrinter.CLOSING);
                }
                printer.writeElement("D", E_VETOABLE_EVENT, XMLPrinter.CLOSING);
            }
            printer.writeElement("D", E_FIRE_EVENTS, XMLPrinter.CLOSING);
            return printer.toString();
        }
    }
}
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.