gpt4 book ai didi

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

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

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

WebServiceFeatureList.getFeature介绍

[英]Returns a corresponding feature for a feature annotation(i.e which has WebServiceFeatureAnnotation meta annotation)
[中]返回要素注释的对应要素(即具有WebServiceFeatureAnnotation元注释的要素)

代码示例

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

/**
 * Returns a corresponding feature for a feature annotation(i.e which has
 * {@link javax.xml.ws.spi.WebServiceFeatureAnnotation} meta annotation)
 *
 * @param ann any annotation, not required to be a feature annotation
 * @return corresponding feature for the annotation
 *         null, if the annotation is not a feature annotation
 */
public static WebServiceFeature getWebServiceFeature(Annotation ann) {
  return WebServiceFeatureList.getFeature(ann);
}

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

/**
 * Returns a corresponding feature for a feature annotation(i.e which has
 * {@link javax.xml.ws.spi.WebServiceFeatureAnnotation} meta annotation)
 *
 * @param ann any annotation, not required to be a feature annotation
 * @return corresponding feature for the annotation
 *         null, if the annotation is not a feature annotation
 */
public static WebServiceFeature getWebServiceFeature(Annotation ann) {
  return WebServiceFeatureList.getFeature(ann);
}

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

/**
 * Returns a corresponding feature for a feature annotation(i.e which has
 * {@link javax.xml.ws.spi.WebServiceFeatureAnnotation} meta annotation)
 *
 * @param ann any annotation, not required to be a feature annotation
 * @return corresponding feature for the annotation
 *         null, if the annotation is not a feature annotation
 */
public static WebServiceFeature getWebServiceFeature(Annotation ann) {
  return WebServiceFeatureList.getFeature(ann);
}

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

static public boolean isFeatureEnabled(Class<? extends WebServiceFeature> type, WebServiceFeature[] features) {
  WebServiceFeature ftr = getFeature(features, type);
  return ftr != null && ftr.isEnabled();
}

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

static public boolean isFeatureEnabled(Class<? extends WebServiceFeature> type, WebServiceFeature[] features) {
  WebServiceFeature ftr = getFeature(features, type);
  return ftr != null && ftr.isEnabled();
}

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

/**
 * Adds the corresponding features to the list for feature annotations(i.e
 * which have {@link WebServiceFeatureAnnotation} meta annotation)
 *
 * @param annIt collection of annotations(that can have non-feature annotations)
 */
public void parseAnnotations(Iterable<Annotation> annIt) {
  for(Annotation ann : annIt) {
    WebServiceFeature feature = getFeature(ann);
    if (feature != null) {
      add(feature);
    }
  }
}

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

static public boolean isFeatureEnabled(Class<? extends WebServiceFeature> type, WebServiceFeature[] features) {
  WebServiceFeature ftr = getFeature(features, type);
  return ftr != null && ftr.isEnabled();
}

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

/**
 * Adds the corresponding features to the list for feature annotations(i.e
 * which have {@link WebServiceFeatureAnnotation} meta annotation)
 *
 * @param annIt collection of annotations(that can have non-feature annotations)
 */
public void parseAnnotations(Iterable<Annotation> annIt) {
  for(Annotation ann : annIt) {
    WebServiceFeature feature = getFeature(ann);
    if (feature != null) {
      add(feature);
    }
  }
}

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

/**
 * Adds the corresponding features to the list for feature annotations(i.e
 * which have {@link WebServiceFeatureAnnotation} meta annotation)
 *
 * @param annIt collection of annotations(that can have non-feature annotations)
 */
public void parseAnnotations(Iterable<Annotation> annIt) {
  for(Annotation ann : annIt) {
    WebServiceFeature feature = getFeature(ann);
    if (feature != null) {
      add(feature);
    }
  }
}

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

/**
 *
 * @param endpointClass web service impl class
 */
public void parseAnnotations(Class<?> endpointClass) {
  for (Annotation a : endpointClass.getAnnotations()) {
    WebServiceFeature ftr = getFeature(a);
    if (ftr != null) {
      if (ftr instanceof MTOMFeature) {
        // check conflict with @BindingType
        BindingID bindingID = BindingID.parse(endpointClass);
        MTOMFeature bindingMtomSetting = bindingID.createBuiltinFeatureList().get(MTOMFeature.class);
        if (bindingMtomSetting != null && bindingMtomSetting.isEnabled() ^ ftr.isEnabled()) {
          throw new RuntimeModelerException(
            ModelerMessages.RUNTIME_MODELER_MTOM_CONFLICT(bindingID, ftr.isEnabled()));
        }
      }
      add(ftr);
    }
  }
}

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

/**
 *
 * @param endpointClass web service impl class
 */
public void parseAnnotations(Class<?> endpointClass) {
  for (Annotation a : endpointClass.getAnnotations()) {
    WebServiceFeature ftr = getFeature(a);
    if (ftr != null) {
      if (ftr instanceof MTOMFeature) {
        // check conflict with @BindingType
        BindingID bindingID = BindingID.parse(endpointClass);
        MTOMFeature bindingMtomSetting = bindingID.createBuiltinFeatureList().get(MTOMFeature.class);
        if (bindingMtomSetting != null && bindingMtomSetting.isEnabled() ^ ftr.isEnabled()) {
          throw new RuntimeModelerException(
            ModelerMessages.RUNTIME_MODELER_MTOM_CONFLICT(bindingID, ftr.isEnabled()));
        }
      }
      add(ftr);
    }
  }
}

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

/**
 *
 * @param endpointClass web service impl class
 */
public void parseAnnotations(Class<?> endpointClass) {
  for (Annotation a : endpointClass.getAnnotations()) {
    WebServiceFeature ftr = getFeature(a);
    if (ftr != null) {
      if (ftr instanceof MTOMFeature) {
        // check conflict with @BindingType
        BindingID bindingID = BindingID.parse(endpointClass);
        MTOMFeature bindingMtomSetting = bindingID.createBuiltinFeatureList().get(MTOMFeature.class);
        if (bindingMtomSetting != null && bindingMtomSetting.isEnabled() ^ ftr.isEnabled()) {
          throw new RuntimeModelerException(
            ModelerMessages.RUNTIME_MODELER_MTOM_CONFLICT(bindingID, ftr.isEnabled()));
        }
      }
      add(ftr);
    }
  }
}

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

if (!features.contains(MTOMFeature.class)) {
  MTOM mtomAn = getAnnotation(portClass, MTOM.class);
  if (mtomAn != null) features.add(WebServiceFeatureList.getFeature(mtomAn));
  if (es != null) features.add(WebServiceFeatureList.getFeature(es));

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

if (!features.contains(MTOMFeature.class)) {
  MTOM mtomAn = getAnnotation(portClass, MTOM.class);
  if (mtomAn != null) features.add(WebServiceFeatureList.getFeature(mtomAn));
  if (es != null) features.add(WebServiceFeatureList.getFeature(es));

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

if (!features.contains(MTOMFeature.class)) {
  MTOM mtomAn = getAnnotation(portClass, MTOM.class);
  if (mtomAn != null) features.add(WebServiceFeatureList.getFeature(mtomAn));
  if (es != null) features.add(WebServiceFeatureList.getFeature(es));

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