Changeset 363
- Timestamp:
- 01/27/12 14:44:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/WeblogParser.java
r232 r363 287 287 if (values.length == 6) { // post vars found 288 288 for (String postVar : values[5].trim().split(" ")) { 289 // TODO manual filtering of bad variables, should be 290 // automated 291 if (!postVar.contains("and")) { 289 if (!isBrokenVariable(postVar)) { 292 290 postedVars.add(postVar); 293 291 } … … 456 454 for (String paramPair : paramPairs) { 457 455 String[] paramSplit = paramPair.split("="); 458 // TODO manual filtering of bad variables, should be automated 459 if (!paramSplit[0].contains("and")) { 456 if (!isBrokenVariable(paramSplit[0])) { 460 457 getVars.add(paramSplit[0]); 461 458 } … … 464 461 return getVars; 465 462 } 463 464 /** 465 * <p> 466 * Checks if a variable is broken.Currently, the check rather imprecise and 467 * checks only if the term "and" is part of the variable name. 468 * </p> 469 * 470 * @param var 471 * variable that is checked 472 * @return true if the variable is broken, false otherwise 473 */ 474 private boolean isBrokenVariable(String var) { 475 // TODO improve filtering of broken variables 476 return var.contains("and"); 477 } 466 478 }
Note: See TracChangeset
for help on using the changeset viewer.