gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-23 00:09:05 26 4
gpt4 key购买 nike

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

WebServiceFeatureList.addAll介绍

[英]Adds features to the list if it's not already added.
[中]将尚未添加的功能添加到列表中。

代码示例

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

public static WebServiceFeatureList toList(Iterable<WebServiceFeature> features) {
  if (features instanceof WebServiceFeatureList)
    return (WebServiceFeatureList) features;
  WebServiceFeatureList w = new WebServiceFeatureList();
  if (features != null)
    w.addAll(features);
  return w;
}

代码示例来源:origin: com.sun.xml.ws/rt

public static WebServiceFeatureList toList(Iterable<WebServiceFeature> features) {
  if (features instanceof WebServiceFeatureList)
    return (WebServiceFeatureList) features;
  WebServiceFeatureList w = new WebServiceFeatureList();
  if (features != null)
    w.addAll(features);
  return w;
}

代码示例来源:origin: javaee/metro-jax-ws

public static WebServiceFeatureList toList(Iterable<WebServiceFeature> features) {
  if (features instanceof WebServiceFeatureList)
    return (WebServiceFeatureList) features;
  WebServiceFeatureList w = new WebServiceFeatureList();
  if (features != null)
    w.addAll(features);
  return w;
}

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

/**
 * Merge all features into one list. Returns an empty list if no lists were
 * passed as parameter.
 * 
 * @param lists The WebServiceFeatureLists.
 * @return A new WebServiceFeatureList that contains all features.
 */
public static @NotNull WebServiceFeatureList mergeList(WebServiceFeatureList... lists) {
  final WebServiceFeatureList result = new WebServiceFeatureList();
  for (WebServiceFeatureList list : lists) {
    result.addAll(list);
  }
  return result;
}

代码示例来源:origin: javaee/metro-jax-ws

/**
 * Merge all features into one list. Returns an empty list if no lists were
 * passed as parameter.
 * 
 * @param lists The WebServiceFeatureLists.
 * @return A new WebServiceFeatureList that contains all features.
 */
public static @NotNull WebServiceFeatureList mergeList(WebServiceFeatureList... lists) {
  final WebServiceFeatureList result = new WebServiceFeatureList();
  for (WebServiceFeatureList list : lists) {
    result.addAll(list);
  }
  return result;
}

代码示例来源:origin: com.sun.xml.ws/rt

/**
 * Merge all features into one list. Returns an empty list if no lists were
 * passed as parameter.
 * 
 * @param lists The WebServiceFeatureLists.
 * @return A new WebServiceFeatureList that contains all features.
 */
public static @NotNull WebServiceFeatureList mergeList(WebServiceFeatureList... lists) {
  final WebServiceFeatureList result = new WebServiceFeatureList();
  for (WebServiceFeatureList list : lists) {
    result.addAll(list);
  }
  return result;
}

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

/**
 * Use {@link BindingImpl#create(BindingID)} to create this.
 *
 * @param bindingId binding id
 * @param features
 *      These features have a precedence over
 *      {@link BindingID#createBuiltinFeatureList() the implicit features}
 *      associated with the {@link BindingID}. 
 */
SOAPBindingImpl(BindingID bindingId, WebServiceFeature... features) {
  super(bindingId, features);
  this.soapVersion = bindingId.getSOAPVersion();
  //populates with required roles and updates handlerConfig
  setRoles(new HashSet<String>());
  //Is this still required? comment out for now
  //setupSystemHandlerDelegate(serviceName);
  this.features.addAll(bindingId.createBuiltinFeatureList());
}

代码示例来源:origin: javaee/metro-jax-ws

/**
 * Use {@link BindingImpl#create(BindingID)} to create this.
 *
 * @param bindingId binding id
 * @param features
 *      These features have a precedence over
 *      {@link BindingID#createBuiltinFeatureList() the implicit features}
 *      associated with the {@link BindingID}. 
 */
SOAPBindingImpl(BindingID bindingId, WebServiceFeature... features) {
  super(bindingId, features);
  this.soapVersion = bindingId.getSOAPVersion();
  //populates with required roles and updates handlerConfig
  setRoles(new HashSet<String>());
  //Is this still required? comment out for now
  //setupSystemHandlerDelegate(serviceName);
  this.features.addAll(bindingId.createBuiltinFeatureList());
}

代码示例来源:origin: com.sun.xml.ws/rt

/**
 * Use {@link BindingImpl#create(BindingID)} to create this.
 *
 * @param bindingId binding id
 * @param features
 *      These features have a precedence over
 *      {@link BindingID#createBuiltinFeatureList() the implicit features}
 *      associated with the {@link BindingID}. 
 */
SOAPBindingImpl(BindingID bindingId, WebServiceFeature... features) {
  super(bindingId, features);
  this.soapVersion = bindingId.getSOAPVersion();
  //populates with required roles and updates handlerConfig
  setRoles(new HashSet<String>());
  //Is this still required? comment out for now
  //setupSystemHandlerDelegate(serviceName);
  this.features.addAll(bindingId.createBuiltinFeatureList());
}

代码示例来源:origin: com.sun.xml.ws/rt

protected <T> T getPort(WSEndpointReference wsepr, QName portName, Class<T> portInterface,
           WebServiceFeatureList features) {
  ComponentFeature cf = features.get(ComponentFeature.class);
  if (cf != null && !Target.STUB.equals(cf.getTarget())) {
    throw new IllegalArgumentException();
  }
  ComponentsFeature csf = features.get(ComponentsFeature.class);
  if (csf != null) {
    for (ComponentFeature cfi : csf.getComponentFeatures()) {
      if (!Target.STUB.equals(cfi.getTarget()))
        throw new IllegalArgumentException();
    }
  }
  features.addAll(this.features);
  SEIPortInfo spi = addSEI(portName, portInterface, features);
  return createEndpointIFBaseProxy(wsepr,portName,portInterface,features, spi);
}

代码示例来源:origin: javaee/metro-jax-ws

protected <T> T getPort(WSEndpointReference wsepr, QName portName, Class<T> portInterface,
           WebServiceFeatureList features) {
  ComponentFeature cf = features.get(ComponentFeature.class);
  if (cf != null && !Target.STUB.equals(cf.getTarget())) {
    throw new IllegalArgumentException();
  }
  ComponentsFeature csf = features.get(ComponentsFeature.class);
  if (csf != null) {
    for (ComponentFeature cfi : csf.getComponentFeatures()) {
      if (!Target.STUB.equals(cfi.getTarget()))
        throw new IllegalArgumentException();
    }
  }
  features.addAll(this.features);
  SEIPortInfo spi = addSEI(portName, portInterface, features);
  return createEndpointIFBaseProxy(wsepr,portName,portInterface,features, spi);
}

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

protected <T> T getPort(WSEndpointReference wsepr, QName portName, Class<T> portInterface,
           WebServiceFeatureList features) {
  ComponentFeature cf = features.get(ComponentFeature.class);
  if (cf != null && !Target.STUB.equals(cf.getTarget())) {
    throw new IllegalArgumentException();
  }
  ComponentsFeature csf = features.get(ComponentsFeature.class);
  if (csf != null) {
    for (ComponentFeature cfi : csf.getComponentFeatures()) {
      if (!Target.STUB.equals(cfi.getTarget()))
        throw new IllegalArgumentException();
    }
  }
  features.addAll(this.features);
  SEIPortInfo spi = addSEI(portName, portInterface, features);
  return createEndpointIFBaseProxy(wsepr,portName,portInterface,features, spi);
}

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

public <T> Dispatch<T> createDispatch(QName portName, WSEndpointReference wsepr, Class<T> aClass, Service.Mode mode, WebServiceFeatureList features) {
  PortInfo port = safeGetPort(portName);
  
  ComponentFeature cf = features.get(ComponentFeature.class);
  if (cf != null && !Target.STUB.equals(cf.getTarget())) {
    throw new IllegalArgumentException();
  }
  ComponentsFeature csf = features.get(ComponentsFeature.class);
  if (csf != null) {
    for (ComponentFeature cfi : csf.getComponentFeatures()) {
      if (!Target.STUB.equals(cfi.getTarget()))
        throw new IllegalArgumentException();
    }
  }
  features.addAll(this.features);
  
  BindingImpl binding = port.createBinding(features, null, null);
  binding.setMode(mode);
  Dispatch<T> dispatch = Stubs.createDispatch(port, this, binding, aClass, mode, wsepr);
  serviceInterceptor.postCreateDispatch((WSBindingProvider) dispatch);
  return dispatch;
}

代码示例来源:origin: com.sun.xml.ws/rt

public <T> Dispatch<T> createDispatch(QName portName, WSEndpointReference wsepr, Class<T> aClass, Service.Mode mode, WebServiceFeatureList features) {
  PortInfo port = safeGetPort(portName);
  
  ComponentFeature cf = features.get(ComponentFeature.class);
  if (cf != null && !Target.STUB.equals(cf.getTarget())) {
    throw new IllegalArgumentException();
  }
  ComponentsFeature csf = features.get(ComponentsFeature.class);
  if (csf != null) {
    for (ComponentFeature cfi : csf.getComponentFeatures()) {
      if (!Target.STUB.equals(cfi.getTarget()))
        throw new IllegalArgumentException();
    }
  }
  features.addAll(this.features);
  
  BindingImpl binding = port.createBinding(features, null, null);
  binding.setMode(mode);
  Dispatch<T> dispatch = Stubs.createDispatch(port, this, binding, aClass, mode, wsepr);
  serviceInterceptor.postCreateDispatch((WSBindingProvider) dispatch);
  return dispatch;
}

代码示例来源:origin: com.sun.xml.ws/rt

protected Dispatch<Object> createDispatch(QName portName, WSEndpointReference wsepr, JAXBContext jaxbContext, Service.Mode mode, WebServiceFeatureList features) {
  PortInfo port = safeGetPort(portName);
  ComponentFeature cf = features.get(ComponentFeature.class);
  if (cf != null && !Target.STUB.equals(cf.getTarget())) {
    throw new IllegalArgumentException();
  }
  ComponentsFeature csf = features.get(ComponentsFeature.class);
  if (csf != null) {
    for (ComponentFeature cfi : csf.getComponentFeatures()) {
      if (!Target.STUB.equals(cfi.getTarget()))
        throw new IllegalArgumentException();
    }
  }
  features.addAll(this.features);
  
  BindingImpl binding = port.createBinding(features, null, null);
  binding.setMode(mode);
  Dispatch<Object> dispatch = Stubs.createJAXBDispatch(
      port, binding, jaxbContext, mode,wsepr);
   serviceInterceptor.postCreateDispatch((WSBindingProvider)dispatch);
   return dispatch;
}

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

protected Dispatch<Object> createDispatch(QName portName, WSEndpointReference wsepr, JAXBContext jaxbContext, Service.Mode mode, WebServiceFeatureList features) {
  PortInfo port = safeGetPort(portName);
  ComponentFeature cf = features.get(ComponentFeature.class);
  if (cf != null && !Target.STUB.equals(cf.getTarget())) {
    throw new IllegalArgumentException();
  }
  ComponentsFeature csf = features.get(ComponentsFeature.class);
  if (csf != null) {
    for (ComponentFeature cfi : csf.getComponentFeatures()) {
      if (!Target.STUB.equals(cfi.getTarget()))
        throw new IllegalArgumentException();
    }
  }
  features.addAll(this.features);
  
  BindingImpl binding = port.createBinding(features, null, null);
  binding.setMode(mode);
  Dispatch<Object> dispatch = Stubs.createJAXBDispatch(
      port, binding, jaxbContext, mode,wsepr);
   serviceInterceptor.postCreateDispatch((WSBindingProvider)dispatch);
   return dispatch;
}

代码示例来源:origin: javaee/metro-jax-ws

public <T> Dispatch<T> createDispatch(QName portName, WSEndpointReference wsepr, Class<T> aClass, Service.Mode mode, WebServiceFeatureList features) {
  PortInfo port = safeGetPort(portName);
  
  ComponentFeature cf = features.get(ComponentFeature.class);
  if (cf != null && !Target.STUB.equals(cf.getTarget())) {
    throw new IllegalArgumentException();
  }
  ComponentsFeature csf = features.get(ComponentsFeature.class);
  if (csf != null) {
    for (ComponentFeature cfi : csf.getComponentFeatures()) {
      if (!Target.STUB.equals(cfi.getTarget()))
        throw new IllegalArgumentException();
    }
  }
  features.addAll(this.features);
  
  BindingImpl binding = port.createBinding(features, null, null);
  binding.setMode(mode);
  Dispatch<T> dispatch = Stubs.createDispatch(port, this, binding, aClass, mode, wsepr);
  serviceInterceptor.postCreateDispatch((WSBindingProvider) dispatch);
  return dispatch;
}

代码示例来源:origin: javaee/metro-jax-ws

protected Dispatch<Object> createDispatch(QName portName, WSEndpointReference wsepr, JAXBContext jaxbContext, Service.Mode mode, WebServiceFeatureList features) {
  PortInfo port = safeGetPort(portName);
  ComponentFeature cf = features.get(ComponentFeature.class);
  if (cf != null && !Target.STUB.equals(cf.getTarget())) {
    throw new IllegalArgumentException();
  }
  ComponentsFeature csf = features.get(ComponentsFeature.class);
  if (csf != null) {
    for (ComponentFeature cfi : csf.getComponentFeatures()) {
      if (!Target.STUB.equals(cfi.getTarget()))
        throw new IllegalArgumentException();
    }
  }
  features.addAll(this.features);
  
  BindingImpl binding = port.createBinding(features, null, null);
  binding.setMode(mode);
  Dispatch<Object> dispatch = Stubs.createJAXBDispatch(
      port, binding, jaxbContext, mode,wsepr);
   serviceInterceptor.postCreateDispatch((WSBindingProvider)dispatch);
   return dispatch;
}

代码示例来源: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;
}

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