changeset 806:763539ab7343

adjusted to passus-filter r239 (fieldName without @)
author Devel 1
date Thu, 04 Jan 2018 16:22:08 +0100
parents 4f6b12b34947
children 40a0874688b0
files stress-tester/src/main/java/com/passus/st/filter/HttpMessageValueExtractor.java
diffstat 1 files changed, 17 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/filter/HttpMessageValueExtractor.java	Thu Jan 04 16:14:45 2018 +0100
+++ b/stress-tester/src/main/java/com/passus/st/filter/HttpMessageValueExtractor.java	Thu Jan 04 16:22:08 2018 +0100
@@ -36,32 +36,32 @@
 
     private Object extractFromWrapper(HttpMessageWrapper wrapper) {
         switch (fieldName) {
-            case "@req.version":
-            case "@req.getVersion()":
+            case "req.version":
+            case "req.getVersion()":
                 return wrapper.getReq().getVersion();
-            case "@req.method":
-            case "@req.getMethod()":
+            case "req.method":
+            case "req.getMethod()":
                 return wrapper.getReq().getMethod();
-            case "@req.sessionId":
-            case "@req.getSessionId()":
+            case "req.sessionId":
+            case "req.getSessionId()":
                 return wrapper.getReq().getSessionId();
-            case "@req.url":
-            case "@req.getUrl()":
+            case "req.url":
+            case "req.getUrl()":
                 return wrapper.getReq().getUrl();
-            case "@req.uri":
-            case "@req.getUri()":
+            case "req.uri":
+            case "req.getUri()":
                 return wrapper.getReq().getUri();
-            case "@resp.version":
-            case "@resp.getVersion()":
+            case "resp.version":
+            case "resp.getVersion()":
                 return wrapper.getResp().getVersion();
-            case "@resp.status":
-            case "@resp.getStatus()":
+            case "resp.status":
+            case "resp.getStatus()":
                 return wrapper.getResp().getStatus();
-            case "@resp.status.code":
-            case "@resp.getStatus().getCode()":
+            case "resp.status.code":
+            case "resp.getStatus().getCode()":
                 return wrapper.getResp().getStatus().getCode();
             default:
-                if (fieldName.startsWith("@req.url.")) {
+                if (fieldName.startsWith("req.url.")) {
                     URL url = wrapper.getReq().getUrl();
                     String urlPart = fieldName.substring(8);
                     switch (urlPart) {