Package org.apache.cxf.management.web.logging

Examples of org.apache.cxf.management.web.logging.LogRecords


            context.createUnmarshaller().unmarshal(new StringReader(value));
    }
   
    private LogRecords readLogRecordsExtension(Entry e) throws Exception {
        ExtensibleElement el = e.getExtension(new QName("http://cxf.apache.org/log", "logRecords", "log"));
        LogRecords records = new LogRecords();
        List<org.apache.cxf.management.web.logging.LogRecord> list =
            new ArrayList<org.apache.cxf.management.web.logging.LogRecord>();
        for (Element element : el.getElements()) {
            org.apache.cxf.management.web.logging.LogRecord record =
                new org.apache.cxf.management.web.logging.LogRecord();
            Element loggerName = element.getFirstChild(
                                     new QName("http://cxf.apache.org/log", "loggerName", "log"));
            if (loggerName != null) {
                record.setLoggerName(loggerName.getText());
            }
            Element throwable = element.getFirstChild(
                                     new QName("http://cxf.apache.org/log", "throwable", "log"));
            if (throwable != null) {
                record.setThrowable(throwable.getText());
            }
            list.add(record);
        }
        records.setLogRecords(list);
        return records;
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.management.web.logging.LogRecords

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.