Ignore:
Timestamp:
03/13/15 15:12:56 (10 years ago)
Author:
sherbold
Message:
  • added convenience function to remove all non-SOAP events from a sequence
  • modified HTTP log parser to turn of the SOAP logging facility. This removes a lot of junk messages, but it is possible we overlook something in the future. In case of problems, the logger should be turned on again.
Location:
trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/HTTPLogParser.java

    r1903 r1923  
    2626import java.util.Properties; 
    2727import java.util.logging.Level; 
     28import java.util.logging.Logger; 
    2829 
    2930import javax.xml.bind.JAXBContext; 
     
    8586     */ 
    8687    public HTTPLogParser() { 
    87          
     88        Logger.getLogger("com.sun.xml.internal.messaging.saaj").setLevel(Level.OFF); 
    8889    } 
    8990     
  • trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/HTTPUtils.java

    r1915 r1923  
    1515package de.ugoe.cs.autoquest.plugin.http; 
    1616 
     17import java.util.Iterator; 
    1718import java.util.LinkedList; 
    1819import java.util.List; 
     
    160161        return newSequence; 
    161162    } 
     163     
     164    /** 
     165     * <p> 
     166     * Removes all non SOAP events from a sequence. Warning: this change is performed in-place! 
     167     * </p> 
     168     *  
     169     * @param sequence 
     170     *            sequence where the events are replaced 
     171     */ 
     172    public static void removeNonSOAPEvents(List<Event> sequence) 
     173    { 
     174        for (Iterator<Event> eventIter = sequence.iterator(); eventIter.hasNext();) { 
     175            Event event = eventIter.next(); 
     176            if (!(event.getType() instanceof SOAPEventType)) { 
     177                eventIter.remove(); 
     178            } 
     179        } 
     180    } 
    162181 
    163182    /** 
Note: See TracChangeset for help on using the changeset viewer.