本文整理了Java中com.sun.xml.ws.binding.WebServiceFeatureList.getFeature()
方法的一些代码示例,展示了WebServiceFeatureList.getFeature()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceFeatureList.getFeature()
方法的具体详情如下:
包路径:com.sun.xml.ws.binding.WebServiceFeatureList
类名称: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));
内容来源于网络,如有侵权,请联系作者删除!