Changeset 1990 for trunk/autoquest-plugin-http/src/main/java/de
- Timestamp:
- 07/08/15 09:02:45 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/HTTPLogParser.java
r1923 r1990 195 195 Session session = sessionObj.getValue(); 196 196 197 long orderingId = 0; 197 198 if ((session.getHttpExchange() != null) && (session.getHttpExchange().size() > 0)) { 198 199 List<Event> sequence = new LinkedList<Event>(); 199 200 for (HttpExchange exchange : session.getHttpExchange()) { 201 202 // check, if the exchange is an old one and does not contain ordering ids yet. 203 // If not, then add them. 204 if (exchange.getRequest().getOrderingId() == null) { 205 exchange.getRequest().setOrderingId(orderingId++); 206 } 207 else { 208 orderingId = exchange.getRequest().getOrderingId(); 209 } 210 211 if (exchange.getResponse().getOrderingId() == null) { 212 exchange.getResponse().setOrderingId(orderingId++); 213 } 214 else { 215 orderingId = exchange.getResponse().getOrderingId(); 216 } 217 218 // now handle the exchange 200 219 sequence.add(new Event(createEvent(exchange), 201 220 new HTTPTarget(exchange.getReceiver())));
Note: See TracChangeset
for help on using the changeset viewer.