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/WebRequest.java

    r90 r111  
    1414 
    1515        List<String> postVars; 
     16        List<String> getVars; 
    1617         
    1718        String targetUri; 
    1819         
    19         public WebRequest(String uri, List<String> postVars) { 
     20        public WebRequest(String uri, List<String> postVars, List<String> getVars) { 
    2021                targetUri = uri; 
    2122                this.postVars = new ArrayList<String>(postVars); // defensive copy 
     23                this.getVars = new ArrayList<String>(getVars); 
    2224        } 
    2325         
     
    3335                return null; 
    3436        } 
     37         
     38        @Override 
     39        public boolean equals(Object other) { 
     40                if( this==other ) { 
     41                        return true; 
     42                } 
     43                if( other instanceof WebRequest ) { 
     44                        return targetUri.equals(((WebRequest) other).targetUri) && postVars.equals(((WebRequest) other).postVars); 
     45                } 
     46                return false; 
     47        } 
     48         
     49        @Override 
     50        public int hashCode() { 
     51                int multiplier = 17; 
     52                int hash = 42; 
     53 
     54                hash = multiplier * hash + targetUri.hashCode(); 
     55                hash = multiplier * hash + postVars.hashCode(); 
     56 
     57                return hash; 
     58        } 
    3559 
    3660} 
Note: See TracChangeset for help on using the changeset viewer.