Examples of PolicyLocator


Examples of org.apache.axis2.util.PolicyLocator

        if (!policyList.isEmpty()) {
            PolicyMetaData policyData = new PolicyMetaData();
            policyData.setWrapper("Policies that are applicable for " + axisService.getName()
                                  + " service");
            policyData.setPolycies(PolicyUtil.processPolicyElements(policyList.iterator(),
                                                                    new PolicyLocator(
                                                                            axisService)));
            policyDataArray.add(policyData);
        }

        for (Iterator iterator = axisService.getEndpoints().values().iterator();
             iterator.hasNext();) {
            AxisEndpoint axisEndpoint = (AxisEndpoint) iterator.next();
            policyList = new ArrayList<PolicyComponent>(axisEndpoint.getPolicySubject()
                    .getAttachedPolicyComponents());

            if (!policyList.isEmpty()) {
                PolicyMetaData policyData = new PolicyMetaData();
                policyData.setWrapper("Policies that are applicable for " + axisEndpoint.getName()
                                      + " endpoint");
                policyData.setPolycies(PolicyUtil.processPolicyElements(policyList.iterator(),
                                                                        new PolicyLocator(
                                                                                axisService)));
                policyDataArray.add(policyData);
            }
        }
View Full Code Here

Examples of org.apache.axis2.util.PolicyLocator

        String key = ((PolicyReference) policyElement).getURI();
        if (key.startsWith("#")) {
          key = key.substring(key.indexOf("#") + 1);
        }

        PolicyLocator locator = new PolicyLocator(axisService);
        Policy p = locator.lookup(key);

        if (p == null) {
          throw new AxisFault("Policy not found for uri : " + key);
        }
        policiesInDescription.put(key, p);
View Full Code Here

Examples of org.apache.axis2.util.PolicyLocator

        String key = ((PolicyReference) policyElement).getURI();
        if (key.startsWith("#")) {
          key = key.substring(key.indexOf("#") + 1);
        }

        PolicyLocator locator = new PolicyLocator(axisService);
        Policy p = locator.lookup(key);

        if (p == null) {
          throw new Exception("Policy not found for uri : " + key);
        }
        addPolicyToDefinitionElement(key, p);
View Full Code Here

Examples of org.apache.axis2.util.PolicyLocator

        policyURIs.add(key);
        addPolicyToDefinitionElement(key, p);

      } else {
        String uri = ((PolicyReference) policyElement).getURI();
        PolicyLocator locator = new PolicyLocator(axisService);
        if (uri.startsWith("#")) {
          key = uri.substring(uri.indexOf('#') + 1);
        } else {
          key = uri;
        }

        Policy p = locator.lookup(key);

        if (p == null) {
          throw new RuntimeException("Cannot resolve " + uri
              + " to a Policy");
        }
View Full Code Here

Examples of org.apache.axis2.util.PolicyLocator

        String key = ((PolicyReference) policyElement).getURI();
        if (key.startsWith("#")) {
          key = key.substring(key.indexOf("#") + 1);
        }

        PolicyLocator locator = new PolicyLocator(axisService);
        Policy p = locator.lookup(key);

        if (p == null) {
          throw new AxisFault("Policy not found for uri : " + key);
        }
        policiesInDescription.put(key, p);
View Full Code Here

Examples of org.apache.axis2.util.PolicyLocator

        String key = ((PolicyReference) policyElement).getURI();
        if (key.startsWith("#")) {
          key = key.substring(key.indexOf("#") + 1);
        }

        PolicyLocator locator = new PolicyLocator(axisService);
        Policy p = locator.lookup(key);

        if (p == null) {
          throw new AxisFault("Policy not found for uri : " + key);
        }
        policiesInDescription.put(key, p);
View Full Code Here

Examples of org.apache.axis2.util.PolicyLocator

                String key = ((PolicyReference)policyElement).getURI();
                if (key.startsWith("#")) {
                    key = key.substring(key.indexOf("#") + 1);
                }

                PolicyLocator locator = new PolicyLocator(axisService);
                Policy p = locator.lookup(key);

                if (p != null) {
                    addPolicyToDefinitionElement(key, p);

                }
View Full Code Here

Examples of org.apache.axis2.util.PolicyLocator

                policyURIs.add(key);
                addPolicyToDefinitionElement(key, p);
            } else {
                String uri = ((PolicyReference)policyElement).getURI();
                PolicyLocator locator = new PolicyLocator(axisService);
                if (uri.startsWith("#")) {
                    key = uri.substring(uri.indexOf('#') + 1);
                } else {
                    key = uri;
                }

                Policy p = locator.lookup(key);

                if (p == null) {
                    throw new RuntimeException("Cannot resolve " + uri
                                               + " to a Policy");
                }
View Full Code Here

Examples of org.apache.axis2.util.PolicyLocator

        String key = ((PolicyReference) policyElement).getURI();
        if (key.startsWith("#")) {
          key = key.substring(key.indexOf("#") + 1);
        }

        PolicyLocator locator = new PolicyLocator(axisService);
        Policy p = locator.lookup(key);

        if (p == null) {
          throw new Exception("Policy not found for uri : " + key);
        }
        addPolicyToDefinitionElement(key, p);
View Full Code Here

Examples of org.apache.axis2.util.PolicyLocator

        policyURIs.add(key);
        addPolicyToDefinitionElement(key, p);

      } else {
        String uri = ((PolicyReference) policyElement).getURI();
        PolicyLocator locator = new PolicyLocator(axisService);
        if (uri.startsWith("#")) {
          key = uri.substring(uri.indexOf('#') + 1);
        } else {
          key = uri;
        }

        Policy p = locator.lookup(key);

        if (p == null) {
          throw new RuntimeException("Cannot resolve " + uri
              + " to a Policy");
        }
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.