changeset 471:34545d3acba8

sync with passus-commons r126
author Devel 1
date Fri, 04 Aug 2017 11:29:14 +0200
parents a9862e2aacaa
children cdff69867843
files stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilterExtractorTransformer.java stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilterInjectorTransformer.java stress-tester/src/main/java/com/passus/st/client/http/filter/HttpScopeModificationFilterTransformer.java
diffstat 3 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilterExtractorTransformer.java	Thu Aug 03 14:59:41 2017 +0200
+++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilterExtractorTransformer.java	Fri Aug 04 11:29:14 2017 +0200
@@ -19,7 +19,7 @@
  *
  * @author Mirosław Hawrot
  */
-class HttpCsrfFilterExtractorTransformer implements NodeTransformer {
+class HttpCsrfFilterExtractorTransformer implements NodeTransformer<CValueNode> {
 
     private Extractor createNameExtractor(CTupleNode tuple, Errors errors, Class<? extends Extractor> clazz) {
         if (validateType(tuple.getNode(), NodeType.VALUE, errors)) {
@@ -37,7 +37,7 @@
     }
 
     @Override
-    public Object transform(CNode node, Errors errors) {
+    public CValueNode transform(CNode node, Errors errors) {
         CMapNode mapNode = (CMapNode) node;
 
         List<CTupleNode> tuples = mapNode.getChildren();
@@ -76,7 +76,7 @@
     }
 
     @Override
-    public Object reverseTransform(CNode node, Errors errors) {
+    public CValueNode reverseTransform(CNode node, Errors errors) {
         throw new UnsupportedOperationException("Not supported yet.");
     }
 
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilterInjectorTransformer.java	Thu Aug 03 14:59:41 2017 +0200
+++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilterInjectorTransformer.java	Fri Aug 04 11:29:14 2017 +0200
@@ -19,7 +19,7 @@
  *
  * @author Mirosław Hawrot
  */
-class HttpCsrfFilterInjectorTransformer implements NodeTransformer {
+class HttpCsrfFilterInjectorTransformer implements NodeTransformer<CValueNode> {
 
     private Injector createNameExtractor(CTupleNode tuple, Errors errors, Class<? extends Injector> clazz) {
         if (validateType(tuple.getNode(), NodeType.VALUE, errors)) {
@@ -37,7 +37,7 @@
     }
 
     @Override
-    public Object transform(CNode node, Errors errors) {
+    public CValueNode transform(CNode node, Errors errors) {
         CMapNode mapNode = (CMapNode) node;
 
         List<CTupleNode> tuples = mapNode.getChildren();
@@ -76,7 +76,7 @@
     }
 
     @Override
-    public Object reverseTransform(CNode node, Errors errors) {
+    public CValueNode reverseTransform(CNode node, Errors errors) {
         throw new UnsupportedOperationException("Not supported yet.");
     }
 
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpScopeModificationFilterTransformer.java	Thu Aug 03 14:59:41 2017 +0200
+++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpScopeModificationFilterTransformer.java	Fri Aug 04 11:29:14 2017 +0200
@@ -26,7 +26,7 @@
  *
  * @author Mirosław Hawrot
  */
-public class HttpScopeModificationFilterTransformer implements NodeTransformer {
+public class HttpScopeModificationFilterTransformer implements NodeTransformer<CValueNode> {
 
     private final ExpressionNodeTransformer expressionTransformer = ExpressionNodeTransformer.DEFAULT;
 
@@ -95,7 +95,7 @@
     }
 
     @Override
-    public Object transform(CNode node, Errors errors) {
+    public CValueNode transform(CNode node, Errors errors) {
         CMapNode mapNode = (CMapNode) node;
 
         List<CTupleNode> tuples = mapNode.getChildren();
@@ -158,7 +158,7 @@
     }
 
     @Override
-    public Object reverseTransform(CNode node, Errors errors) {
+    public CValueNode reverseTransform(CNode node, Errors errors) {
         throw new UnsupportedOperationException("Not supported yet.");
     }