Ignore:
Timestamp:
06/09/11 15:06:49 (14 years ago)
Author:
sherbold
Message:
  • experimental parsing of web usage logs
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  
    11package de.ugoe.cs.eventbench.web.data; 
    22 
    3 import de.ugoe.cs.eventbench.data.Event; 
     3import java.util.List; 
    44 
    5 public class WebEvent extends Event<String> { 
     5import de.ugoe.cs.eventbench.data.ReplayableEvent; 
     6 
     7public class WebEvent extends ReplayableEvent<WebRequest> { 
    68 
    79        private final long timestamp; 
     10        private String uri; 
    811         
    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)); 
    1122                this.timestamp = timestamp; 
     23                this.uri = uri; 
     24                addReplayEvent(new WebRequest(uri, postVars)); 
    1225        } 
    1326         
Note: See TracChangeset for help on using the changeset viewer.