source: trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/data/WebEvent.java @ 67

Last change on this file since 67 was 53, checked in by sherbold, 13 years ago
  • experimental parsing of web usage logs
  • Property svn:mime-type set to text/plain
File size: 742 bytes
Line 
1package de.ugoe.cs.eventbench.web.data;
2
3import java.util.List;
4
5import de.ugoe.cs.eventbench.data.ReplayableEvent;
6
7public class WebEvent extends ReplayableEvent<WebRequest> {
8
9        private final long timestamp;
10        private String uri;
11       
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));
22                this.timestamp = timestamp;
23                this.uri = uri;
24                addReplayEvent(new WebRequest(uri, postVars));
25        }
26       
27        public long getTimestamp() {
28                return timestamp;
29        }
30
31}
Note: See TracBrowser for help on using the repository browser.