Package com.volantis.devrep.repository.api.devices.logging

Examples of com.volantis.devrep.repository.api.devices.logging.Header


            throws SAXException {
        serializer.startElement(NAMESPACE_UNKNOWN_DEVICES,
            ELEMENT_NAME_HEADERS, ELEMENT_NAME_HEADERS, EMPTY_ATTRIBUTES);
        // iterate over the headers
        for (Iterator iter = entry.getHeaders(); iter.hasNext();) {
            final Header header = (Header) iter.next();
            serializer.startElement(NAMESPACE_UNKNOWN_DEVICES,
                ELEMENT_NAME_HEADER, ELEMENT_NAME_HEADER, EMPTY_ATTRIBUTES);
            serializer.startElement(NAMESPACE_UNKNOWN_DEVICES,
                ELEMENT_NAME_HEADER_NAME, ELEMENT_NAME_HEADER_NAME,
                EMPTY_ATTRIBUTES);
            final String name = header.getName();
            serializer.characters(name.toCharArray(), 0, name.length());
            serializer.endElement(NAMESPACE_UNKNOWN_DEVICES,
                ELEMENT_NAME_HEADER_NAME, ELEMENT_NAME_HEADER_NAME);
            serializer.startElement(NAMESPACE_UNKNOWN_DEVICES,
                ELEMENT_NAME_HEADER_VALUE, ELEMENT_NAME_HEADER_VALUE,
                EMPTY_ATTRIBUTES);
            final String value = header.getValue();
            serializer.characters(value.toCharArray(), 0, value.length());
            serializer.endElement(NAMESPACE_UNKNOWN_DEVICES,
                ELEMENT_NAME_HEADER_VALUE, ELEMENT_NAME_HEADER_VALUE);
            serializer.endElement(NAMESPACE_UNKNOWN_DEVICES,
                ELEMENT_NAME_HEADER, ELEMENT_NAME_HEADER);
View Full Code Here

TOP

Related Classes of com.volantis.devrep.repository.api.devices.logging.Header

Copyright © 2018 www.massapicom. 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.