Author: asoldano
Date: 2015-06-10 16:50:18 -0400 (Wed, 10 Jun 2015)
New Revision: 19786
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SoapAddressRewriteHelper.java
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/config/CXFStackConfigFactory.java
Log:
[JBWS-3911] Validate value of wsdl-path-rewrite-rule when setting it
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SoapAddressRewriteHelper.java
===================================================================
---
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SoapAddressRewriteHelper.java 2015-06-10
20:49:13 UTC (rev 19785)
+++
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SoapAddressRewriteHelper.java 2015-06-10
20:50:18 UTC (rev 19786)
@@ -107,6 +107,13 @@
return address;
}
}
+
+ public static void validatePathRewriteRule(String rule) {
+ if (rule == null) {
+ throw new IllegalArgumentException();
+ }
+ SEDProcessor.newInstance(rule);
+ }
public static boolean isAutoRewriteOn(SOAPAddressRewriteMetadata sarm)
{
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/config/CXFStackConfigFactory.java
===================================================================
---
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/config/CXFStackConfigFactory.java 2015-06-10
20:49:13 UTC (rev 19785)
+++
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/config/CXFStackConfigFactory.java 2015-06-10
20:50:18 UTC (rev 19786)
@@ -30,6 +30,7 @@
import org.jboss.wsf.spi.classloading.ClassLoaderProvider;
import org.jboss.wsf.spi.management.StackConfig;
import org.jboss.wsf.spi.management.StackConfigFactory;
+import org.jboss.wsf.stack.cxf.addressRewrite.SoapAddressRewriteHelper;
/**
*
@@ -126,4 +127,10 @@
});
}
}
+
+ @Override
+ public void validatePathRewriteRule(String rule)
+ {
+ SoapAddressRewriteHelper.validatePathRewriteRule(rule);
+ }
}
\ No newline at end of file
Show replies by date