diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-01 16:59:16 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-01 16:59:16 +0000 |
commit | 5e202ff7265d5bfe75875f3f47f765859389b90e (patch) | |
tree | d6a494e53a582b6a9039449040aafc13c43cf779 /sca-java-2.x/trunk/modules/binding-ws-wsdlgen | |
parent | b583f8db1e9df5df5f7feb7f8f1d8932e4a52674 (diff) |
Remove commented out code.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1209151 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-ws-wsdlgen')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WebServiceBindingBuilder.java | 54 |
1 files changed, 1 insertions, 53 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WebServiceBindingBuilder.java b/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WebServiceBindingBuilder.java index 211e7647d9..d3aed3ab6b 100644 --- a/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WebServiceBindingBuilder.java +++ b/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/WebServiceBindingBuilder.java @@ -98,59 +98,7 @@ public class WebServiceBindingBuilder implements BindingBuilder<WebServiceBindin } 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); - } - } - } -*/ + } } |