Package org.apache.neethi

Examples of org.apache.neethi.Policy.merge()


    public Policy getEffectivePolicy(ServiceInfo si) {
        readDocument();
        Policy p = new Policy();
        for (PolicyAttachment pa : attachments) {
            if (pa.appliesTo(si)) {
                p = p.merge(pa.getPolicy());
            }
        }
               
        return p;
    }
View Full Code Here


        result = getPolicy();
       
      } else {
       
        if (getPolicy() != null) {
          result = (Policy) parentPolicy.merge(getPolicy());
         
        } else {
          result = parentPolicy;
        }
      }
View Full Code Here

       
        Policy thePolicy = new Policy();
       
        if (policies != null) {
            for (Policy p : policies) {
                thePolicy = thePolicy.merge(p);
            }
        }
       
        if (loadedPolicies != null) {
            for (Policy p : loadedPolicies) {
View Full Code Here

            }
        }
       
        if (loadedPolicies != null) {
            for (Policy p : loadedPolicies) {
                thePolicy = thePolicy.merge(p);
            }
        }
       
        return thePolicy;
    }
View Full Code Here

                String policyKey = (String) iter.next();
                if (svcEffectivePolicy == null) {
                    svcEffectivePolicy = PolicyEngine.getPolicy(
                        Util.getStreamSource(synCfg.getProperty(policyKey)).getInputStream());
                } else {
                    svcEffectivePolicy = (Policy) svcEffectivePolicy.merge(
                        PolicyEngine.getPolicy(
                            Util.getStreamSource(synCfg.getProperty(policyKey)).getInputStream()));
                }
            }
            PolicyInclude pi = proxyService.getPolicyInclude();
View Full Code Here

       
        Policy thePolicy = new Policy();
       
        if (policies != null) {
            for (Policy p : policies) {
                thePolicy = thePolicy.merge(p);
            }
        }
       
        if (loadedPolicies != null) {
            for (Policy p : loadedPolicies) {
View Full Code Here

            }
        }
       
        if (loadedPolicies != null) {
            for (Policy p : loadedPolicies) {
                thePolicy = thePolicy.merge(p);
            }
        }
       
        return thePolicy;
    }
View Full Code Here

                                                     message.getExchange()
                                                         .getBus().getExtension(PolicyBuilder.class));
            st.addToken(itok);
            all.addPolicyComponent(st);
        }
        pol = p.merge(pol);
       
        client.setPolicy(pol);
        client.setSoap11(message.getVersion() == Soap11.getInstance());
        client.setSecureConv(true);
        String s = message
View Full Code Here

                    p.addPolicyComponent(ea);
                    All all = new All();
                    Assertion ass = NegotiationUtils.getAddressingPolicy(aim, false);
                    all.addPolicyComponent(ass);
                    ea.addPolicyComponent(all);
                    pol = p.merge(pol);
                }
               
                //setup SCT endpoint and forward to it.
                unmapSecurityProps(message);
                String ns = STSUtils.WST_NS_05_12;
View Full Code Here

                String policyKey = (String) iter.next();
                if (svcEffectivePolicy == null) {
                    svcEffectivePolicy = PolicyEngine.getPolicy(
                        Util.getStreamSource(synCfg.getProperty(policyKey)).getInputStream());
                } else {
                    svcEffectivePolicy = (Policy) svcEffectivePolicy.merge(
                        PolicyEngine.getPolicy(
                            Util.getStreamSource(synCfg.getProperty(policyKey)).getInputStream()));
                }
            }
            PolicyInclude pi = proxyService.getPolicyInclude();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.