Changeset 1915 for trunk/autoquest-plugin-http/src/main
- Timestamp:
- 03/12/15 15:23:55 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/HTTPUtils.java
r1913 r1915 133 133 * @param sequence 134 134 * sequence where the events are replaced 135 * @param keepOnlySOAPEvents 136 * if true, all events that are not of SOAPEventType or SimpleSOAPEventType are 137 * removed 135 138 * @return sequence with {@link SimpleSOAPEventType}s instead of {@link SOAPEventType}s 136 139 */ 137 public static List<Event> convertToSimpleSOAPEvent(List<Event> sequence) { 140 public static List<Event> convertToSimpleSOAPEvent(List<Event> sequence, 141 boolean keepOnlySOAPEvents) 142 { 138 143 List<Event> newSequence = null; 139 144 if (sequence != null) { … … 147 152 } 148 153 else { 149 newSequence.add(event); 154 if (!keepOnlySOAPEvents || event.getType() instanceof SimpleSOAPEventType) { 155 newSequence.add(event); 156 } 150 157 } 151 158 }
Note: See TracChangeset
for help on using the changeset viewer.