tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r1209151 - /tuscany/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WebServiceBindingBuilder.java
Date Thu, 01 Dec 2011 16:59:17 GMT
Author: slaws
Date: Thu Dec  1 16:59:16 2011
New Revision: 1209151

URL: http://svn.apache.org/viewvc?rev=1209151&view=rev
Log:
Remove commented out code. 

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WebServiceBindingBuilder.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WebServiceBindingBuilder.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WebServiceBindingBuilder.java?rev=1209151&r1=1209150&r2=1209151&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WebServiceBindingBuilder.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WebServiceBindingBuilder.java
Thu Dec  1 16:59:16 2011
@@ -98,59 +98,7 @@ public class WebServiceBindingBuilder im
             }
             
             defaultIntents.add(defaultIntent);
-        }
-        
-        // if the binding may provide SOAP.v1_1 then use this is as the default if no
-        // other intents are specified
-/*        
-        if (intent != null){
-            List<DefaultIntent> defaultIntents = ((DefaultingPolicySubject)binding).getDefaultIntents();
-            DefaultIntent defaultIntent = policyFactory.createDefaultIntent();
-            
-            // Add the default intent
-            defaultIntent.setDefaultIntent(intent);
-            
-            // Add the names of all of the intents that must not be present in 
-            // order for the default intent to come into force
-            defaultIntent.getMutuallyExclusiveIntents().add(new QName(Base.SCA11_NS, "SOAP.v1_1"));
-            defaultIntent.getMutuallyExclusiveIntents().add(new QName(Base.SCA11_NS, "SOAP.v1_2"));
-            defaultIntent.getMutuallyExclusiveIntents().add(new QName(Base.SCA11_NS, "SOAP"));
-            
-            defaultIntents.add(defaultIntent);
-        }
-*/
-        
-/*        
-        boolean addDefaultSOAPIntent = true;
-        
-        for(Intent intent : ((PolicySubject)binding).getRequiredIntents()){
-            if (intent.getName().getLocalPart().equals("SOAP.v1_1")){
-                addDefaultSOAPIntent = false;
-                break;
-            }
-            if (intent.getName().getLocalPart().equals("SOAP.v1_2")){
-                addDefaultSOAPIntent = false;
-                break;
-            }
-        }
-        
-        if (addDefaultSOAPIntent){
-            Definitions systemDefinitions = context.getDefinitions();
-            if (systemDefinitions != null){
-                BindingType bindingType = systemDefinitions.getBindingType(binding.getType());
-                Intent defaultIntent = null;
-                for (Intent intent : bindingType.getMayProvidedIntents()){
-                    if (intent.getName().getLocalPart().equals("SOAP.v1_1")){
-                        defaultIntent = intent;
-                    }
-                }
-                
-                if (defaultIntent != null){
-                    ((PolicySubject)binding).getRequiredIntents().add(0, defaultIntent);
-                }
-            }
-        }
-*/        
+        }      
         
     }
 



Mime
View raw message