Changeset 53 for trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/data
- Timestamp:
- 06/09/11 15:06:49 (14 years ago)
- Location:
- trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/data
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/data/WebEvent.java
r51 r53 1 1 package de.ugoe.cs.eventbench.web.data; 2 2 3 import de.ugoe.cs.eventbench.data.Event;3 import java.util.List; 4 4 5 public class WebEvent extends Event<String> { 5 import de.ugoe.cs.eventbench.data.ReplayableEvent; 6 7 public class WebEvent extends ReplayableEvent<WebRequest> { 6 8 7 9 private final long timestamp; 10 private String uri; 8 11 9 public WebEvent(String type, long timestamp) { 10 super(type); 12 private final static String makeType(String uri, List<String> postVars) { 13 String type = uri; 14 if( postVars!=null && !postVars.isEmpty() ) { 15 type += postVars.toString().replace(" ", ""); 16 } 17 return type; 18 } 19 20 public WebEvent(String uri, long timestamp, List<String> postVars) { 21 super(makeType(uri, postVars)); 11 22 this.timestamp = timestamp; 23 this.uri = uri; 24 addReplayEvent(new WebRequest(uri, postVars)); 12 25 } 13 26
Note: See TracChangeset
for help on using the changeset viewer.