Package org.apache.ws.policy

Examples of org.apache.ws.policy.PolicyReference


/* 230 */     if ((policyReferences != null) && (policyReferences.size() != 0))
/*     */     {
/* 232 */       reader = (DOMPolicyReader)PolicyFactory.getPolicyReader(3);
/* 233 */       for (WSDLExtensibilityElement element : policyReferences)
/*     */       {
/* 235 */         PolicyReference policyRef = reader.readPolicyReference(element.getElement());
/* 236 */         deployPolicy(resolvePolicyReference(policyRef, localPolicies), scope, extMetaData);
/*     */       }
/*     */     }
/*     */   }
View Full Code Here


    return xorCompositeAssertion;
  }

  public PolicyReference readPolicyReference(OMElement element) {
    OMAttribute attribute = element.getAttribute(new QName("URI"));
    return new PolicyReference(attribute.getAttributeValue());
  }
View Full Code Here

    return xorCompositeAssertion;
  }

  public PolicyReference readPolicyReference(Element element) {
    Attr attribute = element.getAttributeNode("URI");
    return new PolicyReference(attribute.getValue());
  }
View Full Code Here

                } else if (WSDLConstants.POLICY_REFERENCE.equals(unknown
                        .getElementType())) {

                    DOMPolicyReader policyReader = (DOMPolicyReader) PolicyFactory
                            .getPolicyReader(PolicyFactory.DOM_POLICY_READER);
                    PolicyReference policyRef = policyReader
                            .readPolicyReference(unknown.getElement());
                    addPolicyRef(description, originOfExtensibilityElements,
                            policyRef);

                } else {
View Full Code Here

                String policyURIs = value.getLocalPart();

                if (policyURIs.length() != 0) {
                    String[] uris = policyURIs.split(" ");

                    PolicyReference ref;
                    for (int i = 0; i < uris.length; i++) {
                        ref = new PolicyReference(uris[i]);

                        if (PORT_TYPE.equals(origin)) {
                            PolicyInclude include = description.getPolicyInclude();
                            include.addPolicyRefElement(PolicyInclude.PORT_TYPE_POLICY, ref);
                        }
View Full Code Here

                                            PolicyInclude policyInclude) {
        OMPolicyReader reader = (OMPolicyReader) PolicyFactory
                .getPolicyReader(PolicyFactory.OM_POLICY_READER);

        while (policyRefElements.hasNext()) {
            PolicyReference policyReference = reader
                    .readPolicyReference((OMElement) policyRefElements.next());
            policyInclude.addPolicyRefElement(type, policyReference);
        }
    }
View Full Code Here

        if (attribute == null) {
            throw new IllegalArgumentException(
                    "PolicyReference element has no URI attribute");
        }

        return new PolicyReference(attribute.getValue());
    }
View Full Code Here

    return xorCompositeAssertion;
  }

  public PolicyReference readPolicyReference(OMElement element) {
    OMAttribute attribute = element.getAttribute(new QName("URI"));
    return new PolicyReference(attribute.getAttributeValue());
  }
View Full Code Here

TOP

Related Classes of org.apache.ws.policy.PolicyReference

Copyright © 2018 www.massapicom. 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.