gpt4 book ai didi

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

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

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

WebServiceFeatureList.<init>介绍

[英]Creates a list by reading featuers from the annotation on a class.
[中]通过从类的注释中读取特征来创建列表。

代码示例

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

/**
 * Returna a new {@link WebServiceFeatureList} instance
 * that represents the features that are built into this binding ID.
 *
 * <p>
 * For example, {@link BindingID} for
 * {@code "{@value SOAPBinding#SOAP11HTTP_MTOM_BINDING}"}
 * would always return a list that has {@link MTOMFeature} enabled.
 */
public WebServiceFeatureList createBuiltinFeatureList() {
  return new WebServiceFeatureList();
}

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

/**
 * Returns a feature list for feature annotations(i.e which have
 * {@link javax.xml.ws.spi.WebServiceFeatureAnnotation} meta annotation)
 *
 * @param ann list of annotations(that can also have non-feature annotations)
 * @return non-null feature list object
 */
public static WSFeatureList getWSFeatureList(Iterable<Annotation> ann) {
  WebServiceFeatureList list = new WebServiceFeatureList();
  list.parseAnnotations(ann);
  return list;
}

代码示例来源: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/jaxws-rt

public final void addFeature(WebServiceFeature feature) {
  if (features == null)
    features = new WebServiceFeatureList();
  features.add(feature);
}

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

public @NotNull WebServiceFeatureList getFeatures() {
  if(features == null)
    return new WebServiceFeatureList();
  return features;
}

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

public @NotNull WebServiceFeatureList getFeatures() {
  if(features == null)
    return new WebServiceFeatureList();
  return features;
}

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

/**
 * Returns a feature list for feature annotations(i.e which have
 * {@link javax.xml.ws.spi.WebServiceFeatureAnnotation} meta annotation)
 *
 * @param ann list of annotations(that can also have non-feature annotations)
 * @return non-null feature list object
 */
public static WSFeatureList getWSFeatureList(Iterable<Annotation> ann) {
  WebServiceFeatureList list = new WebServiceFeatureList();
  list.parseAnnotations(ann);
  return list;
}

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

public final void addFeature(WebServiceFeature feature) {
  if (features == null)
    features = new WebServiceFeatureList();
  features.add(feature);
}

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

public void setOperationFeatures(@NotNull final QName operationName, WebServiceFeature... newFeatures) {
  if (newFeatures != null) {
    WebServiceFeatureList featureList = operationFeatures.get(operationName);
    if (featureList == null) {
      featureList = new WebServiceFeatureList();
    }
    for (WebServiceFeature f : newFeatures) {
      featureList.add(f);
    }
    operationFeatures.put(operationName, featureList);
  }
}

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

public void setOutputMessageFeatures(@NotNull final QName operationName, WebServiceFeature... newFeatures) {
  if (newFeatures != null) {
    WebServiceFeatureList featureList = outputMessageFeatures.get(operationName);
    if (featureList == null) {
      featureList = new WebServiceFeatureList();
    }
    for (WebServiceFeature f : newFeatures) {
      featureList.add(f);
    }
    outputMessageFeatures.put(operationName, featureList);
  }
}

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

public void setOperationFeatures(@NotNull final QName operationName, WebServiceFeature... newFeatures) {
  if (newFeatures != null) {
    WebServiceFeatureList featureList = operationFeatures.get(operationName);
    if (featureList == null) {
      featureList = new WebServiceFeatureList();
    }
    for (WebServiceFeature f : newFeatures) {
      featureList.add(f);
    }
    operationFeatures.put(operationName, featureList);
  }
}

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

public void setOutputMessageFeatures(@NotNull final QName operationName, WebServiceFeature... newFeatures) {
  if (newFeatures != null) {
    WebServiceFeatureList featureList = outputMessageFeatures.get(operationName);
    if (featureList == null) {
      featureList = new WebServiceFeatureList();
    }
    for (WebServiceFeature f : newFeatures) {
      featureList.add(f);
    }
    outputMessageFeatures.put(operationName, featureList);
  }
}

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

public void setOutputMessageFeatures(@NotNull final QName operationName, WebServiceFeature... newFeatures) {
  if (newFeatures != null) {
    WebServiceFeatureList featureList = outputMessageFeatures.get(operationName);
    if (featureList == null) {
      featureList = new WebServiceFeatureList();
    }
    for (WebServiceFeature f : newFeatures) {
      featureList.add(f);
    }
    outputMessageFeatures.put(operationName, featureList);
  }
}

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

protected BindingImpl(BindingID bindingId, WebServiceFeature ... features) {
  this.bindingId = bindingId;
  handlerConfig = new HandlerConfiguration(Collections.<String>emptySet(), Collections.<Handler>emptyList());
  if (handlerConfig.getHandlerKnownHeaders() != null)
    knownHeaders.addAll(handlerConfig.getHandlerKnownHeaders());
  this.features = new WebServiceFeatureList(features);
  this.features.validate();
}

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

protected BindingImpl(BindingID bindingId, WebServiceFeature ... features) {
  this.bindingId = bindingId;
  handlerConfig = new HandlerConfiguration(Collections.<String>emptySet(), Collections.<Handler>emptyList());
  if (handlerConfig.getHandlerKnownHeaders() != null)
    knownHeaders.addAll(handlerConfig.getHandlerKnownHeaders());
  this.features = new WebServiceFeatureList(features);
  this.features.validate();
}

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

public <T> T getPort(WSEndpointReference wsepr, Class<T> portInterface, WebServiceFeature... features) {
  //get the portType from SEI, so that it can be used if EPR does n't have endpointName
  WebServiceFeatureList featureList = new WebServiceFeatureList(features);
  QName portTypeName = RuntimeModeler.getPortTypeName(portInterface, getMetadadaReader(featureList, portInterface.getClassLoader()));
  //if port name is not specified in EPR, it will use portTypeName to get it from the WSDL model.
  QName portName = getPortNameFromEPR(wsepr, portTypeName);
  return getPort(wsepr,portName,portInterface, featureList);
}

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

/**
 * @param serviceClass
 *      Either {@link Service}.class or other generated service-derived classes.
 */
public WSServiceDelegate(@Nullable Source wsdl, @NotNull QName serviceName, @NotNull final Class<? extends Service> serviceClass, WebServiceFeature... features) {
  this(wsdl, serviceName, serviceClass, new WebServiceFeatureList(features));
}

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

/**
 * @param serviceClass
 *      Either {@link Service}.class or other generated service-derived classes.
 */
public WSServiceDelegate(@Nullable Source wsdl, @NotNull QName serviceName, @NotNull final Class<? extends Service> serviceClass, WebServiceFeature... features) {
  this(wsdl, serviceName, serviceClass, new WebServiceFeatureList(features));
}

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

/**
 * @param serviceClass
 *      Either {@link Service}.class or other generated service-derived classes.
 */
public WSServiceDelegate(@Nullable Source wsdl, @Nullable WSDLService service, @NotNull QName serviceName, @NotNull final Class<? extends Service> serviceClass, WebServiceFeature... features) {
  this(wsdl, service, serviceName, serviceClass, new WebServiceFeatureList(features));
}

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

/**
 * @param serviceClass
 *      Either {@link Service}.class or other generated service-derived classes.
 */
public WSServiceDelegate(@Nullable Source wsdl, @Nullable WSDLService service, @NotNull QName serviceName, @NotNull final Class<? extends Service> serviceClass, WebServiceFeature... features) {
  this(wsdl, service, serviceName, serviceClass, new WebServiceFeatureList(features));
}

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