You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2009/03/09 09:40:25 UTC
svn commit: r751623 -
/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java
Author: ruwan
Date: Mon Mar 9 08:40:23 2009
New Revision: 751623
URL: http://svn.apache.org/viewvc?rev=751623&view=rev
Log:
removing the depricated getPolicyIncludes method and using the proper getPolicySubject method
Modified:
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java
Modified: synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java?rev=751623&r1=751622&r2=751623&view=diff
==============================================================================
--- synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java (original)
+++ synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java Mon Mar 9 08:40:23 2009
@@ -459,16 +459,16 @@
if (pi.isServicePolicy()) {
- proxyService.getPolicyInclude().addPolicyElement(
- PolicyInclude.AXIS_SERVICE_POLICY,
+ proxyService.getPolicySubject().attachPolicy(
getPolicyFromKey(pi.getPolicyKey(), synCfg));
} else if (pi.isOperationPolicy()) {
AxisOperation op = proxyService.getOperation(pi.getOperation());
if (op != null) {
- op.getPolicyInclude().addPolicyElement(PolicyInclude.AXIS_OPERATION_POLICY,
+ op.getPolicySubject().attachPolicy(
getPolicyFromKey(pi.getPolicyKey(), synCfg));
+
} else {
handleException("Couldn't find the operation specified " +
"by the QName : " + pi.getOperation());
@@ -480,8 +480,7 @@
AxisOperation op = proxyService.getOperation(pi.getOperation());
if (op != null) {
- op.getMessage(pi.getMessageLable()).getPolicyInclude().addPolicyElement(
- PolicyInclude.MESSAGE_POLICY,
+ op.getMessage(pi.getMessageLable()).getPolicySubject().attachPolicy(
getPolicyFromKey(pi.getPolicyKey(), synCfg));
} else {
handleException("Couldn't find the operation " +
@@ -501,8 +500,7 @@
AxisMessage message = ((AxisOperation)
obj).getMessage(pi.getMessageLable());
- message.getPolicyInclude().addPolicyElement(
- PolicyInclude.AXIS_MESSAGE_POLICY,
+ message.getPolicySubject().attachPolicy(
getPolicyFromKey(pi.getPolicyKey(), synCfg));
}
}