Package org.jboss.metadata.common.jboss

Examples of org.jboss.metadata.common.jboss.WebserviceDescriptionsMetaData


      // We have to return an empty map like the old code, even when there is nothing
      Map<String, String> result = new LinkedHashMap<String, String>();
      WebservicesMetaData webservices = getDelegate().getWebservices();
      if (webservices == null)
         return result;
      WebserviceDescriptionsMetaData descriptions = webservices.getWebserviceDescriptions();
      if (descriptions == null)
         return result;

      // The old code didn't check for null wsdl location, so neither does this
      for (WebserviceDescriptionMetaData description : descriptions)
View Full Code Here


   public String getWsdlPublishLocationByName(String name)
   {
      WebservicesMetaData webservices = getDelegate().getWebservices();
      if (webservices == null)
         return null;
      WebserviceDescriptionsMetaData descriptions = webservices.getWebserviceDescriptions();
      if (descriptions == null)
         return null;
      WebserviceDescriptionMetaData description = descriptions.get(name);
      if (description == null)
         return null;
      return description.getWsdlPublishLocation();
   }
View Full Code Here

         String contextRoot = wsMetaData.getContextRoot();
         ejbMetaData.setWebServiceContextRoot(contextRoot);

         ejbMetaData.setPublishLocationAdapter(getPublishLocationAdpater(wsMetaData));

         WebserviceDescriptionsMetaData wsDescriptions = wsMetaData.getWebserviceDescriptions();
         if (wsDescriptions != null)
         {
            if (wsDescriptions.size() > 1)
               log.warn("Multiple <webservice-description> elements not supported");

            if (wsDescriptions.size() > 0)
            {
               WebserviceDescriptionMetaData wsd = wsDescriptions.iterator().next();
               ejbMetaData.setConfigName(wsd.getConfigName());
               ejbMetaData.setConfigFile(wsd.getConfigFile());
            }
         }
      }
View Full Code Here

   {
      return new PublishLocationAdapter() {
         public String getWsdlPublishLocationByName(String name)
         {
            String wsdlPublishLocation = null;
            WebserviceDescriptionsMetaData wsDescriptions = wsMetaData.getWebserviceDescriptions();
            if (wsDescriptions != null && wsDescriptions.get(name) != null)
            {
               WebserviceDescriptionMetaData wsdMetaData = wsDescriptions.get(name);
               wsdlPublishLocation = wsdMetaData.getWsdlPublishLocation();
            }
            return wsdlPublishLocation;
         }
      };
View Full Code Here

   private void setConfigNameAndFile(JSEArchiveMetaData umd, JBossWebMetaData jbossWebMetaData)
   {
      String configName = null;
      String configFile = null;
     
      WebserviceDescriptionsMetaData wsDescriptions = jbossWebMetaData.getWebserviceDescriptions();
      if (wsDescriptions != null && wsDescriptions.size() > 1)
         log.warn("Multiple <webservice-description> elements not supported");

      if (wsDescriptions != null && wsDescriptions.size() > 0)
      {
         WebserviceDescriptionMetaData wsd = wsDescriptions.iterator().next();
         configName = wsd.getConfigName();
         configFile = wsd.getConfigFile();
      }

      List<ParamValueMetaData> contextParams = jbossWebMetaData.getContextParams();
View Full Code Here

   {
      return new PublishLocationAdapter()
      {
         public String getWsdlPublishLocationByName(String name)
         {
            WebserviceDescriptionsMetaData wsdmd = wmd.getWebserviceDescriptions();
            WebserviceDescriptionMetaData wsmd = wsdmd.get(name);
            String location = null;
            if (wsmd != null)
               location = wsmd.getWsdlPublishLocation();
            return location;
         }
View Full Code Here

         String contextRoot = webservices.getContextRoot();
         ejbMetaData.setWebServiceContextRoot(contextRoot);
        
         ejbMetaData.setPublishLocationAdapter(getPublishLocationAdpater(webservices));

         WebserviceDescriptionsMetaData wsDescriptions = webservices.getWebserviceDescriptions();
         if (wsDescriptions != null)
         {
            if (wsDescriptions.size() > 1)
               log.warn("Multiple <webservice-description> elements not supported");

            if (wsDescriptions.size() > 0)
            {
               WebserviceDescriptionMetaData wsd = wsDescriptions.iterator().next();
               ejbMetaData.setConfigName(wsd.getConfigName());
               ejbMetaData.setConfigFile(wsd.getConfigFile());
            }
         }
      }
View Full Code Here

      return new PublishLocationAdapter()
      {
         public String getWsdlPublishLocationByName(String name)
         {
            String wsdlPublishLocation = null;
            WebserviceDescriptionsMetaData wsDescriptions = wsMetaData.getWebserviceDescriptions();
            if (wsDescriptions != null && wsDescriptions.get(name) != null)
            {
               WebserviceDescriptionMetaData wsdMetaData = wsDescriptions.get(name);
               wsdlPublishLocation = wsdMetaData.getWsdlPublishLocation();
            }
            return wsdlPublishLocation;
         }
      };
View Full Code Here

     *
     * @param jseArchiveMD universal JSE meta data model
     * @param jbossWebMD jboss web meta data
     */
    private void setConfigNameAndFile(final JSEArchiveMetaData jseArchiveMD, final JBossWebMetaData jbossWebMD) {
        final WebserviceDescriptionsMetaData wsDescriptionsMD = jbossWebMD.getWebserviceDescriptions();
        final WebserviceDescriptionMetaData wsDescriptionMD = ASHelper.getWebserviceDescriptionMetaData(wsDescriptionsMD);
        if (wsDescriptionMD != null) {
            if (wsDescriptionMD.getConfigName() != null) {
                jseArchiveMD.setConfigName(wsDescriptionMD.getConfigName());
                jseArchiveMD.setConfigFile(wsDescriptionMD.getConfigFile());
View Full Code Here

   {
      assertNotNull(webservices);
      if(mode != Mode.JBOSS_DTD)
         assertId("webservices", webservices);
      assertEquals("webservicesContextRoot", webservices.getContextRoot());
      WebserviceDescriptionsMetaData webserviceDescriptionsMetaData = webservices.getWebserviceDescriptions();
      assertNotNull(webserviceDescriptionsMetaData);
      assertEquals(2, webserviceDescriptionsMetaData.size());
      int count = 1;
      for (WebserviceDescriptionMetaData description : webserviceDescriptionsMetaData)
      {
         if(mode != Mode.JBOSS_DTD)
            assertId("webserviceDescription" + count, description);
View Full Code Here

TOP

Related Classes of org.jboss.metadata.common.jboss.WebserviceDescriptionsMetaData

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.