gpt4 book ai didi

com.sun.xml.ws.binding.WebServiceFeatureList.mergeFeatures()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 22:45:05 29 4
gpt4 key购买 nike

本文整理了Java中com.sun.xml.ws.binding.WebServiceFeatureList.mergeFeatures()方法的一些代码示例,展示了WebServiceFeatureList.mergeFeatures()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceFeatureList.mergeFeatures()方法的具体详情如下:
包路径:com.sun.xml.ws.binding.WebServiceFeatureList
类名称:WebServiceFeatureList
方法名:mergeFeatures

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);

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com