Package org.jboss.ws.extensions.policy.metadata

Examples of org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder


         populateXmlTypes(sepMetaData);

         //Process an optional @PolicyAttachment annotation
         if (sepClass.isAnnotationPresent(PolicyAttachment.class))
         {
            PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getServerSidePolicyMetaDataBuilder(toolMode);
            policyBuilder.processPolicyAnnotations(sepMetaData, sepClass);
         }

         // The server must always generate WSDL
         if (generateWsdl || !toolMode)
            processOrGenerateWSDL(seiClass, serviceMetaData, result.wsdlLocation, sepMetaData);
View Full Code Here


      return result;
   }

   private void processOrGenerateWSDL(Class wsClass, ServiceMetaData serviceMetaData, URL wsdlLocation, EndpointMetaData epMetaData)
   {
      PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getServerSidePolicyMetaDataBuilder(toolMode);
      try
      {
         WSDLGenerator generator = new JAXBWSDLGenerator(jaxbCtx);
         WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
         if (wsdlLocation != null)
         {
            //we can no longer use the user provided wsdl without parsing it right now, since we
            //need to look for policies and eventually choose the supported policy alternatives
            WSDLDefinitions wsdlDefinitions = factory.parse(wsdlLocation);
            policyBuilder.processPolicyExtensions(epMetaData, wsdlDefinitions);
            //now we have the UMDM containing policy data; anyway we can't write a new wsdl file with
            //the supported alternatives and so on, since we need to publish the file the user provided
            serviceMetaData.setWsdlLocation(wsdlLocation);
         }
         else
View Full Code Here

         buildMetaDataInternal(serviceMetaData, wsdlDefinitions);

         //Setup policies for each endpoint
         for (EndpointMetaData epMetaData : serviceMetaData.getEndpoints())
         {
            PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getClientSidePolicyMetaDataBuilder();
            policyBuilder.processPolicyExtensions(epMetaData, wsdlDefinitions);
         }
        
         // Read the WSDL and initialize the schema model
         // This should only be needed for debuging purposes of the UMDM
         JBossXSModel schemaModel = WSDLUtils.getSchemaModel(wsdlDefinitions.getWsdlTypes());
View Full Code Here

/*     */
/*  87 */       buildMetaDataInternal(serviceMetaData, wsdlDefinitions);
/*     */
/*  90 */       for (EndpointMetaData epMetaData : serviceMetaData.getEndpoints())
/*     */       {
/*  92 */         PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getClientSidePolicyMetaDataBuilder();
/*  93 */         policyBuilder.processPolicyExtensions(epMetaData, wsdlDefinitions);
/*     */       }
/*     */
/*  98 */       JBossXSModel schemaModel = WSDLUtils.getSchemaModel(wsdlDefinitions.getWsdlTypes());
/*  99 */       serviceMetaData.getTypesMetaData().setSchemaModel(schemaModel);
/*     */
View Full Code Here

/* 146 */       createJAXBContext(sepMetaData);
/* 147 */       populateXmlTypes(sepMetaData);
/*     */
/* 150 */       if (sepClass.isAnnotationPresent(PolicyAttachment.class))
/*     */       {
/* 152 */         PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getServerSidePolicyMetaDataBuilder(this.toolMode);
/* 153 */         policyBuilder.processPolicyAnnotations(sepMetaData, sepClass);
/*     */       }
/*     */
/* 157 */       if ((this.generateWsdl) || (!this.toolMode)) {
/* 158 */         processOrGenerateWSDL(seiClass, serviceMetaData, result.wsdlLocation, sepMetaData);
/*     */       }
View Full Code Here

/* 359 */     return result;
/*     */   }
/*     */
/*     */   private void processOrGenerateWSDL(Class wsClass, ServiceMetaData serviceMetaData, URL wsdlLocation, EndpointMetaData epMetaData)
/*     */   {
/* 364 */     PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getServerSidePolicyMetaDataBuilder(this.toolMode);
/*     */     try
/*     */     {
/* 367 */       WSDLGenerator generator = new JAXBWSDLGenerator(this.jaxbCtx);
/* 368 */       WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
/* 369 */       if (wsdlLocation != null)
/*     */       {
/* 373 */         WSDLDefinitions wsdlDefinitions = factory.parse(wsdlLocation);
/* 374 */         policyBuilder.processPolicyExtensions(epMetaData, wsdlDefinitions);
/*     */
/* 377 */         serviceMetaData.setWsdlLocation(wsdlLocation);
/*     */       }
/*     */       else
/*     */       {
View Full Code Here

         populateXmlTypes(sepMetaData);

         //Process an optional @PolicyAttachment annotation
         if (sepClass.isAnnotationPresent(PolicyAttachment.class))
         {
            PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getServerSidePolicyMetaDataBuilder(toolMode);
            policyBuilder.processPolicyAnnotations(sepMetaData, sepClass);
         }

         // The server must always generate WSDL
         if (generateWsdl || !toolMode)
            processOrGenerateWSDL(seiClass, serviceMetaData, result.wsdlLocation, sepMetaData);
View Full Code Here

      return result;
   }

   private void processOrGenerateWSDL(Class wsClass, ServiceMetaData serviceMetaData, URL wsdlLocation, EndpointMetaData epMetaData)
   {
      PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getServerSidePolicyMetaDataBuilder(toolMode);
      try
      {
         WSDLGenerator generator = new JAXBWSDLGenerator(jaxbCtx);
         WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
         if (wsdlLocation != null)
         {
            //we can no longer use the user provided wsdl without parsing it right now, since we
            //need to look for policies and eventually choose the supported policy alternatives
            WSDLDefinitions wsdlDefinitions = factory.parse(wsdlLocation);
            policyBuilder.processPolicyExtensions(epMetaData, wsdlDefinitions);
            //now we have the UMDM containing policy data; anyway we can't write a new wsdl file with
            //the supported alternatives and so on, since we need to publish the file the user provided
            serviceMetaData.setWsdlLocation(wsdlLocation);
         }
         else
View Full Code Here

TOP

Related Classes of org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder

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.