本文整理了Java中com.sun.xml.ws.binding.WebServiceFeatureList.mergeFeatures()
方法的一些代码示例,展示了WebServiceFeatureList.mergeFeatures()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceFeatureList.mergeFeatures()
方法的具体详情如下:
包路径:com.sun.xml.ws.binding.WebServiceFeatureList
类名称:WebServiceFeatureList
方法名:mergeFeatures
[英]Extracts features from WSDLPort#getFeatures(). Extra features that are not already set on binding. i.e, if a feature is set already on binding through some other API the corresponding wsdlFeature is not set.
[中]从WSDLPort#getFeatures()提取功能。尚未在绑定上设置的额外功能。i、 例如,如果通过其他API绑定时已经设置了功能,则不会设置相应的wsdlFeature。
代码示例来源:origin: javaee/metro-jax-ws
@NotNull
public WebServiceFeatureList getFeatures() {
//TODO scchen convert BindingID to WebServiceFeature[]
if(!isFeatureEnabled(com.oracle.webservices.api.EnvelopeStyleFeature.class)) {
WebServiceFeature[] f = { getSOAPVersion().toFeature() };
features.mergeFeatures(f, false);
}
return features;
}
代码示例来源:origin: com.sun.xml.ws/rt
@NotNull
public WebServiceFeatureList getFeatures() {
//TODO scchen convert BindingID to WebServiceFeature[]
if(!isFeatureEnabled(com.oracle.webservices.api.EnvelopeStyleFeature.class)) {
WebServiceFeature[] f = { getSOAPVersion().toFeature() };
features.mergeFeatures(f, false);
}
return features;
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
@NotNull
public WebServiceFeatureList getFeatures() {
//TODO scchen convert BindingID to WebServiceFeature[]
if(!isFeatureEnabled(com.oracle.webservices.api.EnvelopeStyleFeature.class)) {
WebServiceFeature[] f = { getSOAPVersion().toFeature() };
features.mergeFeatures(f, false);
}
return features;
}
代码示例来源:origin: com.sun.xml.ws/rt
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface,
BindingImpl existingBinding) {
if (existingBinding != null) {
webServiceFeatures.addAll(existingBinding.getFeatures());
}
Iterable<WebServiceFeature> configFeatures;
//TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving
// ability to turn off the WSDL/Policy based features and its associated tubes.
//Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration
if (portModel != null) {
// could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap
// for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(),
// So, using here WsdlModel for merging is right.
// merge features from WSDL
configFeatures = portModel.getFeatures();
} else {
configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName);
}
webServiceFeatures.mergeFeatures(configFeatures, false);
// merge features from interceptor
webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false);
BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray());
owner.getHandlerConfigurator().configureHandlers(this,bindingImpl);
return bindingImpl;
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface,
BindingImpl existingBinding) {
if (existingBinding != null) {
webServiceFeatures.addAll(existingBinding.getFeatures());
}
Iterable<WebServiceFeature> configFeatures;
//TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving
// ability to turn off the WSDL/Policy based features and its associated tubes.
//Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration
if (portModel != null) {
// could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap
// for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(),
// So, using here WsdlModel for merging is right.
// merge features from WSDL
configFeatures = portModel.getFeatures();
} else {
configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName);
}
webServiceFeatures.mergeFeatures(configFeatures, false);
// merge features from interceptor
webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false);
BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray());
owner.getHandlerConfigurator().configureHandlers(this,bindingImpl);
return bindingImpl;
}
代码示例来源:origin: javaee/metro-jax-ws
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface,
BindingImpl existingBinding) {
if (existingBinding != null) {
webServiceFeatures.addAll(existingBinding.getFeatures());
}
Iterable<WebServiceFeature> configFeatures;
//TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving
// ability to turn off the WSDL/Policy based features and its associated tubes.
//Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration
if (portModel != null) {
// could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap
// for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(),
// So, using here WsdlModel for merging is right.
// merge features from WSDL
configFeatures = portModel.getFeatures();
} else {
configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName);
}
webServiceFeatures.mergeFeatures(configFeatures, false);
// merge features from interceptor
webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false);
BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray());
owner.getHandlerConfigurator().configureHandlers(this,bindingImpl);
return bindingImpl;
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
configFtrs = PolicyUtil.getPortScopedFeatures(policyMap,serviceName,portName);
features.mergeFeatures(configFtrs, true);
terminal = createProviderInvokerTube(implType, binding, invoker, container);
} else {
features.mergeFeatures(wsdlPort.getFeatures(), true);
terminal = createSEIInvokerTube(seiModel,invoker,binding);
代码示例来源:origin: javaee/metro-jax-ws
configFtrs = PolicyUtil.getPortScopedFeatures(policyMap,serviceName,portName);
features.mergeFeatures(configFtrs, true);
terminal = createProviderInvokerTube(implType, binding, invoker, container);
} else {
features.mergeFeatures(wsdlPort.getFeatures(), true);
terminal = createSEIInvokerTube(seiModel,invoker,binding);
代码示例来源:origin: com.sun.xml.ws/rt
configFtrs = PolicyUtil.getPortScopedFeatures(policyMap,serviceName,portName);
features.mergeFeatures(configFtrs, true);
terminal = createProviderInvokerTube(implType, binding, invoker, container);
} else {
features.mergeFeatures(wsdlPort.getFeatures(), true);
terminal = createSEIInvokerTube(seiModel,invoker,binding);
内容来源于网络,如有侵权,请联系作者删除!