Ignore:
Timestamp:
07/07/11 11:04:27 (13 years ago)
Author:
sherbold
Message:
  • URI of web sessions is not parsed and split into path and GET parameters; of the GET parameters only the name is used to define the type
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/data/WebEvent.java

    r87 r111  
    88 
    99        /** 
     10         * <p> 
    1011         * Id for object serialization. 
     12         * </p> 
    1113         */ 
    1214        private static final long serialVersionUID = 1L; 
    1315         
    1416        private final long timestamp; 
    15         private String uri; 
     17                 
    1618         
    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                } 
    1924                if( postVars!=null && !postVars.isEmpty() ) { 
    20                         type += postVars.toString().replace(" ", ""); 
     25                        type += "+POST"+postVars.toString().replace(" ", ""); 
    2126                } 
    2227                return type; 
    2328        } 
    2429         
    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)); 
    2732                this.timestamp = timestamp; 
    28                 this.uri = uri; 
    29                 addReplayEvent(new WebRequest(uri, postVars)); 
     33                addReplayEvent(new WebRequest(path, postVars, getVars)); 
    3034        } 
    3135         
Note: See TracChangeset for help on using the changeset viewer.