- Timestamp:
- 07/08/15 09:02:45 (9 years ago)
- Location:
- trunk/autoquest-plugin-http/src/main
- Files:
-
- 2 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()))); -
trunk/autoquest-plugin-http/src/main/resources/HttpExchangeStructure.xsd
r1437 r1990 33 33 <xsd:attribute name="url" use="required" type="xsd:anyURI" /> 34 34 <xsd:attribute name="query" type="xsd:string" /> 35 <xsd:attribute name="orderingId" type="xsd:long" /> 35 36 </xsd:complexType> 36 37 … … 41 42 </xsd:sequence> 42 43 <xsd:attribute name="status" use="required" type="xsd:integer" /> 44 <xsd:attribute name="orderingId" type="xsd:long" /> 43 45 </xsd:complexType> 44 46
Note: See TracChangeset
for help on using the changeset viewer.