本文整理了Java中com.sun.xml.ws.binding.WebServiceFeatureList.get()
方法的一些代码示例,展示了WebServiceFeatureList.get()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceFeatureList.get()
方法的具体详情如下:
包路径:com.sun.xml.ws.binding.WebServiceFeatureList
类名称:WebServiceFeatureList
方法名:get
[英]Returns a corresponding feature for a feature annotation(i.e which has WebServiceFeatureAnnotation meta annotation)
[中]返回要素注释的对应要素(即具有WebServiceFeatureAnnotation元注释的要素)
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
private MetadataReader getMetadadaReader(WebServiceFeatureList features, ClassLoader classLoader) {
if (features == null) return null;
com.oracle.webservices.api.databinding.ExternalMetadataFeature ef =
features.get(com.oracle.webservices.api.databinding.ExternalMetadataFeature.class);
// TODO-Miran: would it be necessary to disable secure xml processing?
if (ef != null)
return ef.getMetadataReader(classLoader, false);
return null;
}
代码示例来源:origin: com.sun.xml.ws/rt
private MetadataReader getMetadadaReader(WebServiceFeatureList features, ClassLoader classLoader) {
if (features == null) return null;
com.oracle.webservices.api.databinding.ExternalMetadataFeature ef =
features.get(com.oracle.webservices.api.databinding.ExternalMetadataFeature.class);
// TODO-Miran: would it be necessary to disable secure xml processing?
if (ef != null)
return ef.getMetadataReader(classLoader, false);
return null;
}
代码示例来源:origin: javaee/metro-jax-ws
private MetadataReader getMetadadaReader(WebServiceFeatureList features, ClassLoader classLoader) {
if (features == null) return null;
com.oracle.webservices.api.databinding.ExternalMetadataFeature ef =
features.get(com.oracle.webservices.api.databinding.ExternalMetadataFeature.class);
// TODO-Miran: would it be necessary to disable secure xml processing?
if (ef != null)
return ef.getMetadataReader(classLoader, false);
return null;
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
public boolean contains(@NotNull Class<? extends WebServiceFeature> feature) {
WebServiceFeature ftr = get(feature);
return ftr != null;
}
代码示例来源:origin: com.sun.xml.ws/rt
public boolean contains(@NotNull Class<? extends WebServiceFeature> feature) {
WebServiceFeature ftr = get(feature);
return ftr != null;
}
代码示例来源:origin: javaee/metro-jax-ws
public boolean contains(@NotNull Class<? extends WebServiceFeature> feature) {
WebServiceFeature ftr = get(feature);
return ftr != null;
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
public void mergeFeatures(WebServiceFeature[] features, boolean reportConflicts) {
for (WebServiceFeature wsdlFtr : features) {
if (get(wsdlFtr.getClass()) == null) {
add(wsdlFtr);
} else if (reportConflicts) {
if (isEnabled(wsdlFtr.getClass()) != wsdlFtr.isEnabled()) {
LOGGER.warning(ModelerMessages.RUNTIME_MODELER_FEATURE_CONFLICT(
get(wsdlFtr.getClass()), wsdlFtr));
}
}
}
}
代码示例来源:origin: javaee/metro-jax-ws
public void mergeFeatures(WebServiceFeature[] features, boolean reportConflicts) {
for (WebServiceFeature wsdlFtr : features) {
if (get(wsdlFtr.getClass()) == null) {
add(wsdlFtr);
} else if (reportConflicts) {
if (isEnabled(wsdlFtr.getClass()) != wsdlFtr.isEnabled()) {
LOGGER.warning(ModelerMessages.RUNTIME_MODELER_FEATURE_CONFLICT(
get(wsdlFtr.getClass()), wsdlFtr));
}
}
}
}
代码示例来源:origin: com.sun.xml.ws/rt
public void mergeFeatures(WebServiceFeature[] features, boolean reportConflicts) {
for (WebServiceFeature wsdlFtr : features) {
if (get(wsdlFtr.getClass()) == null) {
add(wsdlFtr);
} else if (reportConflicts) {
if (isEnabled(wsdlFtr.getClass()) != wsdlFtr.isEnabled()) {
LOGGER.warning(ModelerMessages.RUNTIME_MODELER_FEATURE_CONFLICT(
get(wsdlFtr.getClass()), wsdlFtr));
}
}
}
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
@Nullable
public <F extends WebServiceFeature> F getFeature(@NotNull Class<F> featureType) {
if(features==null)
return null;
else
return features.get(featureType);
}
}
代码示例来源:origin: com.sun.xml.ws/rt
@Nullable
public <F extends WebServiceFeature> F getFeature(@NotNull Class<F> featureType) {
if(features==null)
return null;
else
return features.get(featureType);
}
}
代码示例来源:origin: javaee/metro-jax-ws
@Nullable
public <F extends WebServiceFeature> F getFeature(@NotNull Class<F> featureType) {
if(features==null)
return null;
else
return features.get(featureType);
}
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
public boolean isEnabled(@NotNull Class<? extends WebServiceFeature> feature) {
WebServiceFeature ftr = get(feature);
return ftr != null && ftr.isEnabled();
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
public @Nullable <F extends WebServiceFeature> F getFeature(@NotNull Class<F> featureType){
return features.get(featureType);
}
代码示例来源:origin: javaee/metro-jax-ws
public boolean isEnabled(@NotNull Class<? extends WebServiceFeature> feature) {
WebServiceFeature ftr = get(feature);
return ftr != null && ftr.isEnabled();
}
代码示例来源:origin: com.sun.xml.ws/rt
public boolean isEnabled(@NotNull Class<? extends WebServiceFeature> feature) {
WebServiceFeature ftr = get(feature);
return ftr != null && ftr.isEnabled();
}
代码示例来源:origin: com.sun.xml.ws/rt
public @Nullable <F extends WebServiceFeature> F getFeature(@NotNull Class<F> featureType){
return features.get(featureType);
}
代码示例来源:origin: javaee/metro-jax-ws
public @Nullable <F extends WebServiceFeature> F getFeature(@NotNull Class<F> featureType){
return features.get(featureType);
}
代码示例来源: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: 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);
}
内容来源于网络,如有侵权,请联系作者删除!