Hi again,

I've looked at org.apache.axis2.description.PolicyInclude.java in both
Axis 2.1.1 and Axis2.1.3 and it seems to be there as shown below. So it
should work with either 2.1.1 or Axis2.1.3. I'm using Axis2.1.3 BTW. I'm
really stuck with this so any help would be welcome. Cheers.

Regards
Sanjay

2.1.1 PolicyInclude.java
 public Policy getEffectivePolicy() 
{  
  if (! useCacheE) 
  {
   calculateEffectivePolicy();  
   useCacheE(true);
  }
  return effectivePolicy;
 }
 
2.1.3 PolicyInclude.java
    public Policy getEffectivePolicy() {
        calculateEffectivePolicy();
        return effectivePolicy;
    }
 
//where calculateEffectivePolicy is coded as
    private void calculateEffectivePolicy() {
        Policy result;
 
        if (getParent() != null) {
            Policy parentPolicy = getParent().getEffectivePolicy();
 
            if (parentPolicy == null) {
                result = getPolicy();
 
            } else {
 
                if (getPolicy() != null) {
                    result = (Policy) parentPolicy.merge(getPolicy());
 
                } else {
                    result = parentPolicy;
                }
            }
 
        } else {
            result = getPolicy();
        }
        setEffectivePolicy(result);
    }

Reply via email to