Examples of readPolicy()


Examples of com.sun.xacml.support.finder.PolicyReader.readPolicy()

           {
              try
              {
                      // first try to load it as a URL
                      URL url = new URL(str);
                      policy = reader.readPolicy(url);
               }
               catch (MalformedURLException murle)
               {
                      // assume that this is a filename, and try again
                      policy = reader.readPolicy(new File(str));
View Full Code Here

Examples of com.sun.xacml.support.finder.PolicyReader.readPolicy()

                      policy = reader.readPolicy(url);
               }
               catch (MalformedURLException murle)
               {
                      // assume that this is a filename, and try again
                      policy = reader.readPolicy(new File(str));
               }
           }
           catch (ParsingException e)
           {
              this.encounteredParsingException = true;
View Full Code Here

Examples of com.sun.xacml.support.finder.PolicyReader.readPolicy()

/*     */       try
/*     */       {
/*     */         try
/*     */         {
/* 229 */           URL url = new URL(str);
/* 230 */           policy = reader.readPolicy(url);
/*     */         }
/*     */         catch (MalformedURLException murle)
/*     */         {
/* 235 */           policy = reader.readPolicy(new File(str));
/*     */         }
View Full Code Here

Examples of com.sun.xacml.support.finder.PolicyReader.readPolicy()

/* 229 */           URL url = new URL(str);
/* 230 */           policy = reader.readPolicy(url);
/*     */         }
/*     */         catch (MalformedURLException murle)
/*     */         {
/* 235 */           policy = reader.readPolicy(new File(str));
/*     */         }
/*     */       }
/*     */       catch (ParsingException e)
/*     */       {
/* 240 */         this.encounteredParsingException = true;
View Full Code Here

Examples of org.apache.ws.policy.util.DOMPolicyReader.readPolicy()

                    component.addExtensibilityElement(soapAddressExtensibiltyElement);
                   
                } else if (ExtensionConstants.POLICY.equals(unknown.getElementType())) {
                    PolicyExtensibilityElement policyExtensibilityElement = (PolicyExtensibilityElement) extensionFactory.getExtensionElement(wsdl4jElement.getElementType());
                    DOMPolicyReader policyReader = (DOMPolicyReader) PolicyFactory.getPolicyReader(PolicyFactory.DOM_POLICY_READER);
                    policyExtensibilityElement.setPolicyElement(policyReader.readPolicy(unknown.getElement()));                   
                    component.addExtensibilityElement(policyExtensibilityElement);
                   
                } else if (ExtensionConstants.POLICY_REFERENCE.equals(unknown.getElementType())) {
                    PolicyExtensibilityElement policyExtensibilityElement = (PolicyExtensibilityElement) extensionFactory.getExtensionElement(wsdl4jElement.getElementType());
                    DOMPolicyReader policyReader = (DOMPolicyReader) PolicyFactory.getPolicyReader(PolicyFactory.DOM_POLICY_READER);
View Full Code Here

Examples of org.apache.ws.policy.util.DOMPolicyReader.readPolicy()

                Element element = e.getElement();
                if (PolicyConstants.WS_POLICY_NAMESPACE_URI.equals(element
                        .getNamespaceURI())
                        && PolicyConstants.WS_POLICY.equals(element
                        .getLocalName())) {
                    policies.add(reader.readPolicy(element));

                } else if (PolicyConstants.WS_POLICY_NAMESPACE_URI
                        .equals(element.getNamespaceURI())
                        && PolicyConstants.WS_POLICY_REFERENCE.equals(element
                        .getLocalName())) {
View Full Code Here

Examples of org.apache.ws.policy.util.DOMPolicyReader.readPolicy()

                    component.addExtensibilityElement(soapAddressExtensibiltyElement);

                } else if (ExtensionConstants.POLICY.equals(unknown.getElementType())) {
                    PolicyExtensibilityElement policyExtensibilityElement = (PolicyExtensibilityElement) extensionFactory.getExtensionElement(wsdl4jElement.getElementType());
                    DOMPolicyReader policyReader = (DOMPolicyReader) PolicyFactory.getPolicyReader(PolicyFactory.DOM_POLICY_READER);
                    policyExtensibilityElement.setPolicyElement(policyReader.readPolicy(unknown.getElement()));
                    component.addExtensibilityElement(policyExtensibilityElement);

                } else if (ExtensionConstants.POLICY_REFERENCE.equals(unknown.getElementType())) {
                    PolicyExtensibilityElement policyExtensibilityElement = (PolicyExtensibilityElement) extensionFactory.getExtensionElement(wsdl4jElement.getElementType());
                    DOMPolicyReader policyReader = (DOMPolicyReader) PolicyFactory.getPolicyReader(PolicyFactory.DOM_POLICY_READER);
View Full Code Here

Examples of org.apache.ws.policy.util.DOMPolicyReader.readPolicy()

        Element element = e.getElement();
        if (PolicyConstants.WS_POLICY_NAMESPACE_URI.equals(element
            .getNamespaceURI())
            && PolicyConstants.WS_POLICY.equals(element
                .getLocalName())) {
          policies.add(reader.readPolicy(element));

        } else if (PolicyConstants.WS_POLICY_NAMESPACE_URI
            .equals(element.getNamespaceURI())
            && PolicyConstants.WS_POLICY_REFERENCE.equals(element
                .getLocalName())) {
View Full Code Here

Examples of org.apache.ws.policy.util.DOMPolicyReader.readPolicy()

            // It should work in all containers, server/client side
            UnifiedVirtualFile vfPolicyFile = vfRoot.findChild(policyFileLocation);
            is = vfPolicyFile.toURL().openStream();
           
            DOMPolicyReader reader = (DOMPolicyReader)PolicyFactory.getPolicyReader(PolicyFactory.DOM_POLICY_READER);
            Policy unnormalizedPolicy = reader.readPolicy(is);
            Policy normPolicy = (Policy)unnormalizedPolicy.normalize();
            log.info("Deploying Annotated Policy = " + policyFileLocation);
            PolicyScopeLevel scope = anPolicy.scope();
            if (PolicyScopeLevel.WSDL_PORT.equals(scope) || PolicyScopeLevel.WSDL_PORT_TYPE.equals(scope) || PolicyScopeLevel.WSDL_BINDING.equals(scope))
            {
View Full Code Here

Examples of org.apache.ws.policy.util.DOMPolicyReader.readPolicy()

      //Collect all policies defined in our wsdl definitions
      DOMPolicyReader reader = (DOMPolicyReader)PolicyFactory.getPolicyReader(PolicyFactory.DOM_POLICY_READER);
      PolicyRegistry localPolicyRegistry = new PolicyRegistry();
      for (WSDLExtensibilityElement policyElement : wsdlDefinitions.getExtensibilityElements(Constants.WSDL_ELEMENT_POLICY))
      {
         Policy policy = reader.readPolicy(policyElement.getElement());
         localPolicyRegistry.register(policy.getPolicyURI(), policy);
      }
      //Port scope
      WSDLService wsdlService = wsdlDefinitions.getService(epMetaData.getServiceMetaData().getServiceName());
      if (wsdlService != null)
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.