Author: rsearls
Date: 2014-07-29 13:58:28 -0400 (Tue, 29 Jul 2014)
New Revision: 18823
Modified:
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfigMBean.java
Log:
[JBWS-3750] integration of WebServicePathRewriteRule
Modified:
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java
===================================================================
---
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java 2014-07-29
17:57:52 UTC (rev 18822)
+++
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java 2014-07-29
17:58:28 UTC (rev 18823)
@@ -81,7 +81,11 @@
// Whether we should always modify the soap address to the deployed endpoint location
private volatile boolean modifySOAPAddress;
private final Object modifySOAPAddressLock = new Object();
-
+
+ // The SOAP address path component for substitution in the existing SOAP address.
+ private volatile String webServicePathRewriteRule;
+ private final Object webServicePathRewriteRuleLock = new Object();
+
private volatile boolean statisticsEnabled;
//The stack config
@@ -262,7 +266,28 @@
return localPort;
}
}
-
+
+ public String getWebServicePathRewriteRule()
+ {
+ return webServicePathRewriteRule;
+ }
+
+ public void setWebServicePathRewriteRule(String path)
+ {
+ setWebServicePathRewriteRule(path, null);
+ }
+
+ public void setWebServicePathRewriteRule(String path, UpdateCallbackHandler uch)
+ {
+ synchronized (webServicePathRewriteRuleLock) {
+ if (uch != null)
+ {
+ uch.onBeforeUpdate();
+ }
+ this.webServicePathRewriteRule = path;
+ }
+ }
+
private int getConnectorPort(boolean secure) {
final ClassLoader cl =
ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader();
int port = 0;
@@ -389,4 +414,4 @@
public interface UpdateCallbackHandler {
public void onBeforeUpdate();
}
-}
\ No newline at end of file
+}
Modified:
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfigMBean.java
===================================================================
---
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfigMBean.java 2014-07-29
17:57:52 UTC (rev 18822)
+++
common/trunk/src/main/java/org/jboss/ws/common/management/AbstractServerConfigMBean.java 2014-07-29
17:58:28 UTC (rev 18823)
@@ -58,4 +58,8 @@
boolean isModifySOAPAddress();
void setModifySOAPAddress(boolean flag);
+
+ String getWebServicePathRewriteRule();
+
+ void setWebServicePathRewriteRule(String path);
}
Show replies by date