- Timestamp:
- 07/07/11 11:04:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/data/WebEvent.java
r87 r111 8 8 9 9 /** 10 * <p> 10 11 * Id for object serialization. 12 * </p> 11 13 */ 12 14 private static final long serialVersionUID = 1L; 13 15 14 16 private final long timestamp; 15 private String uri;17 16 18 17 private final static String makeType(String uri, List<String> postVars) { 18 String type = uri; 19 private final static String makeType(String path, List<String> postVars, List<String> getVars) { 20 String type = path; 21 if( getVars!=null && !getVars.isEmpty() ) { 22 type += "+GET"+getVars.toString().replace(" ", ""); 23 } 19 24 if( postVars!=null && !postVars.isEmpty() ) { 20 type += postVars.toString().replace(" ", "");25 type += "+POST"+postVars.toString().replace(" ", ""); 21 26 } 22 27 return type; 23 28 } 24 29 25 public WebEvent(String uri, long timestamp, List<String> postVars) {26 super(makeType( uri, postVars));30 public WebEvent(String path, long timestamp, List<String> postVars, List<String> getVars) { 31 super(makeType(path, postVars, getVars)); 27 32 this.timestamp = timestamp; 28 this.uri = uri; 29 addReplayEvent(new WebRequest(uri, postVars)); 33 addReplayEvent(new WebRequest(path, postVars, getVars)); 30 34 } 31 35
Note: See TracChangeset
for help on using the changeset viewer.