src/share/jaxws_classes/com/sun/xml/internal/ws/binding/WebServiceFeatureList.java

changeset 408
b0610cd08440
parent 368
0989ad8c0860
child 637
9c07ef4934dd
equal deleted inserted replaced
405:cc682329886b 408:b0610cd08440
36 import com.sun.xml.internal.ws.api.WSFeatureList; 36 import com.sun.xml.internal.ws.api.WSFeatureList;
37 import com.sun.xml.internal.ws.api.FeatureConstructor; 37 import com.sun.xml.internal.ws.api.FeatureConstructor;
38 import com.sun.xml.internal.ws.api.model.wsdl.WSDLPort; 38 import com.sun.xml.internal.ws.api.model.wsdl.WSDLPort;
39 import com.sun.xml.internal.ws.api.model.wsdl.WSDLFeaturedObject; 39 import com.sun.xml.internal.ws.api.model.wsdl.WSDLFeaturedObject;
40 import com.sun.xml.internal.ws.model.RuntimeModelerException; 40 import com.sun.xml.internal.ws.model.RuntimeModelerException;
41 import com.sun.xml.internal.ws.model.wsdl.WSDLPortImpl;
42 import com.sun.xml.internal.ws.resources.ModelerMessages; 41 import com.sun.xml.internal.ws.resources.ModelerMessages;
43 import com.sun.xml.internal.bind.util.Which; 42 import com.sun.xml.internal.bind.util.Which;
44 43
45 import javax.xml.ws.RespectBinding; 44 import javax.xml.ws.RespectBinding;
46 import javax.xml.ws.RespectBindingFeature; 45 import javax.xml.ws.RespectBindingFeature;
438 } 437 }
439 } 438 }
440 } 439 }
441 440
442 /** 441 /**
443 * Extracts features from {@link WSDLPortImpl#getFeatures()}. Extra features 442 * Extracts features from {@link WSDLPort#getFeatures()}. Extra features
444 * that are not already set on binding. i.e, if a feature is set already on 443 * that are not already set on binding. i.e, if a feature is set already on
445 * binding through someother API the coresponding wsdlFeature is not set. 444 * binding through some other API the corresponding wsdlFeature is not set.
446 * 445 *
447 * @param wsdlPort 446 * @param wsdlPort
448 * WSDLPort model 447 * WSDLPort model
449 * @param honorWsdlRequired 448 * @param honorWsdlRequired
450 * If this is true add WSDL Feature only if wsd:Required=true In 449 * If this is true add WSDL Feature only if wsd:Required=true In
451 * SEI case, it should be false In Provider case, it should be 450 * SEI case, it should be false In Provider case, it should be
452 * true 451 * true
453 * @param reportConflicts 452 * @param reportConflicts
454 * If true, checks if the feature setting in WSDL (wsdl extension 453 * If true, checks if the feature setting in WSDL (wsdl extension
455 * or policy configuration) colflicts with feature setting in 454 * or policy configuration) conflicts with feature setting in
456 * Deployed Service and logs warning if there are any conflicts. 455 * Deployed Service and logs warning if there are any conflicts.
457 */ 456 */
458 public void mergeFeatures(@NotNull WSDLPort wsdlPort, 457 public void mergeFeatures(@NotNull WSDLPort wsdlPort,
459 boolean honorWsdlRequired, boolean reportConflicts) { 458 boolean honorWsdlRequired, boolean reportConflicts) {
460 if (honorWsdlRequired && !isEnabled(RespectBindingFeature.class)) 459 if (honorWsdlRequired && !isEnabled(RespectBindingFeature.class))

mercurial