axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r753167 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisBinding.java
Date Fri, 13 Mar 2009 08:46:05 GMT
Author: amilas
Date: Fri Mar 13 08:46:04 2009
New Revision: 753167

URL: http://svn.apache.org/viewvc?rev=753167&view=rev
Log:
getting the policy in new way

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisBinding.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisBinding.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisBinding.java?rev=753167&r1=753166&r2=753167&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisBinding.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisBinding.java
Fri Mar 13 08:46:04 2009
@@ -243,14 +243,13 @@
     
     public Policy getEffectivePolicy() {
         ArrayList<PolicyComponent> policyList = new ArrayList<PolicyComponent>();
-        policyList.addAll(getPolicyInclude().getAttachedPolicies());
+        policyList.addAll(getPolicySubject().getAttachedPolicyComponents());
      
         // AxisEndpoint
         AxisEndpoint axisEndpoint = getAxisEndpoint();
         
         if (axisEndpoint != null) {
-            policyList.addAll(axisEndpoint.getPolicyInclude()
-                    .getAttachedPolicies());
+            policyList.addAll(axisEndpoint.getPolicySubject().getAttachedPolicyComponents());
         }
         
         AxisService service = null;
@@ -260,9 +259,9 @@
         }
         
         if (service != null) {
-            Policy effectivePolicy = service.getPolicyInclude().getEffectivePolicy();
-            if (effectivePolicy != null) {
-                policyList.add(effectivePolicy);
+            PolicySubject servicePolicySubject = service.getPolicySubject();
+            if (servicePolicySubject != null) {
+                policyList.addAll(servicePolicySubject.getAttachedPolicyComponents());
             }
         }
         



Mime
View raw message