Ignore:
Timestamp:
03/12/15 15:23:55 (10 years ago)
Author:
sherbold
Message:
  • changed signature of HTTPUtils.convertToSimpleSOAPEvent to directly remove all non-SOAP events
File:
1 edited

Legend:

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

    r1913 r1915  
    133133     * @param sequence 
    134134     *            sequence where the events are replaced 
     135     * @param keepOnlySOAPEvents 
     136     *            if true, all events that are not of SOAPEventType or SimpleSOAPEventType are 
     137     *            removed 
    135138     * @return sequence with {@link SimpleSOAPEventType}s instead of {@link SOAPEventType}s 
    136139     */ 
    137     public static List<Event> convertToSimpleSOAPEvent(List<Event> sequence) { 
     140    public static List<Event> convertToSimpleSOAPEvent(List<Event> sequence, 
     141                                                       boolean keepOnlySOAPEvents) 
     142    { 
    138143        List<Event> newSequence = null; 
    139144        if (sequence != null) { 
     
    147152                } 
    148153                else { 
    149                     newSequence.add(event); 
     154                    if (!keepOnlySOAPEvents || event.getType() instanceof SimpleSOAPEventType) { 
     155                        newSequence.add(event); 
     156                    } 
    150157                } 
    151158            } 
Note: See TracChangeset for help on using the changeset viewer.