本文整理了Java中com.sun.xml.ws.binding.WebServiceFeatureList.isEnabled()
方法的一些代码示例,展示了WebServiceFeatureList.isEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceFeatureList.isEnabled()
方法的具体详情如下:
包路径:com.sun.xml.ws.binding.WebServiceFeatureList
类名称:WebServiceFeatureList
方法名:isEnabled
暂无
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
public AddressingVersion getAddressingVersion() {
AddressingVersion addressingVersion;
if (features.isEnabled(AddressingFeature.class))
addressingVersion = AddressingVersion.W3C;
else if (features.isEnabled(MemberSubmissionAddressingFeature.class))
addressingVersion = AddressingVersion.MEMBER;
else
addressingVersion = null;
return addressingVersion;
}
代码示例来源:origin: javaee/metro-jax-ws
public AddressingVersion getAddressingVersion() {
AddressingVersion addressingVersion;
if (features.isEnabled(AddressingFeature.class))
addressingVersion = AddressingVersion.W3C;
else if (features.isEnabled(MemberSubmissionAddressingFeature.class))
addressingVersion = AddressingVersion.MEMBER;
else
addressingVersion = null;
return addressingVersion;
}
代码示例来源:origin: com.sun.xml.ws/rt
public AddressingVersion getAddressingVersion() {
AddressingVersion addressingVersion;
if (features.isEnabled(AddressingFeature.class))
addressingVersion = AddressingVersion.W3C;
else if (features.isEnabled(MemberSubmissionAddressingFeature.class))
addressingVersion = AddressingVersion.MEMBER;
else
addressingVersion = null;
return addressingVersion;
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
public boolean isFeatureEnabled(@NotNull Class<? extends WebServiceFeature> feature){
return features.isEnabled(feature);
}
代码示例来源:origin: com.sun.xml.ws/rt
public boolean isFeatureEnabled(@NotNull Class<? extends WebServiceFeature> feature){
return features.isEnabled(feature);
}
代码示例来源:origin: javaee/metro-jax-ws
public boolean isFeatureEnabled(@NotNull Class<? extends WebServiceFeature> feature){
return features.isEnabled(feature);
}
代码示例来源: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: 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: 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
/**
* Merges the extra features that are not already set on binding.
* i.e, if a feature is set already on binding through some other API
* the corresponding wsdlFeature is not set.
*
* @param features Web Service features that need to be merged with already configured features.
* @param reportConflicts If true, checks if the feature setting in WSDL (wsdl extension or
* policy configuration) conflicts with feature setting in Deployed Service and
* logs warning if there are any conflicts.
*/
public void mergeFeatures(@NotNull Iterable<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
/**
* Merges the extra features that are not already set on binding.
* i.e, if a feature is set already on binding through some other API
* the corresponding wsdlFeature is not set.
*
* @param features Web Service features that need to be merged with already configured features.
* @param reportConflicts If true, checks if the feature setting in WSDL (wsdl extension or
* policy configuration) conflicts with feature setting in Deployed Service and
* logs warning if there are any conflicts.
*/
public void mergeFeatures(@NotNull Iterable<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
/**
* Merges the extra features that are not already set on binding.
* i.e, if a feature is set already on binding through some other API
* the corresponding wsdlFeature is not set.
*
* @param features Web Service features that need to be merged with already configured features.
* @param reportConflicts If true, checks if the feature setting in WSDL (wsdl extension or
* policy configuration) conflicts with feature setting in Deployed Service and
* logs warning if there are any conflicts.
*/
public void mergeFeatures(@NotNull Iterable<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
private BindingID getDefaultBindingID() {
BindingType bt = getAnnotation(portClass, BindingType.class);
if (bt != null) return BindingID.parse(bt.value());
SOAPVersion ver = getSoapVersion(features);
boolean mtomEnabled = features.isEnabled(MTOMFeature.class);
if (SOAPVersion.SOAP_12.equals(ver)) {
return (mtomEnabled) ? BindingID.SOAP12_HTTP_MTOM : BindingID.SOAP12_HTTP;
} else {
return (mtomEnabled) ? BindingID.SOAP11_HTTP_MTOM : BindingID.SOAP11_HTTP;
}
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
private BindingID getDefaultBindingID() {
BindingType bt = getAnnotation(portClass, BindingType.class);
if (bt != null) return BindingID.parse(bt.value());
SOAPVersion ver = getSoapVersion(features);
boolean mtomEnabled = features.isEnabled(MTOMFeature.class);
if (SOAPVersion.SOAP_12.equals(ver)) {
return (mtomEnabled) ? BindingID.SOAP12_HTTP_MTOM : BindingID.SOAP12_HTTP;
} else {
return (mtomEnabled) ? BindingID.SOAP11_HTTP_MTOM : BindingID.SOAP11_HTTP;
}
}
代码示例来源:origin: javaee/metro-jax-ws
private BindingID getDefaultBindingID() {
BindingType bt = getAnnotation(portClass, BindingType.class);
if (bt != null) return BindingID.parse(bt.value());
SOAPVersion ver = getSoapVersion(features);
boolean mtomEnabled = features.isEnabled(MTOMFeature.class);
if (SOAPVersion.SOAP_12.equals(ver)) {
return (mtomEnabled) ? BindingID.SOAP12_HTTP_MTOM : BindingID.SOAP12_HTTP;
} else {
return (mtomEnabled) ? BindingID.SOAP11_HTTP_MTOM : BindingID.SOAP11_HTTP;
}
}
代码示例来源:origin: com.sun.xml.ws/rt
if (honorWsdlRequired && !isEnabled(RespectBindingFeature.class))
return;
if (!honorWsdlRequired) {
if (isEnabled(wsdlFtr.getClass()) != wsdlFtr.isEnabled()) {
LOGGER.warning(ModelerMessages.RUNTIME_MODELER_FEATURE_CONFLICT(
get(wsdlFtr.getClass()), wsdlFtr));
代码示例来源:origin: javaee/metro-jax-ws
if (honorWsdlRequired && !isEnabled(RespectBindingFeature.class))
return;
if (!honorWsdlRequired) {
if (isEnabled(wsdlFtr.getClass()) != wsdlFtr.isEnabled()) {
LOGGER.warning(ModelerMessages.RUNTIME_MODELER_FEATURE_CONFLICT(
get(wsdlFtr.getClass()), wsdlFtr));
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
if (honorWsdlRequired && !isEnabled(RespectBindingFeature.class))
return;
if (!honorWsdlRequired) {
if (isEnabled(wsdlFtr.getClass()) != wsdlFtr.isEnabled()) {
LOGGER.warning(ModelerMessages.RUNTIME_MODELER_FEATURE_CONFLICT(
get(wsdlFtr.getClass()), wsdlFtr));
内容来源于网络,如有侵权,请联系作者删除!