热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

javax.xml.ws.soap.Addressing.enabled()方法的使用及代码示例

本文整理了Java中javax.xml.ws.soap.Addressing.enabled()方法的一些代码示例,展示了Addressing.enable

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

Addressing.enabled介绍

暂无

代码示例

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

features.add(new AddressingFeature(addressing.enabled(),
addressing.required(),
addressing.responses()));

代码示例来源:origin: apache/cxf

features.add(new AddressingFeature(addressing.enabled(),
addressing.required(),
addressing.responses()));

代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration

private static void processAddressingAnnotation(final AnnotatedElement anElement, final UnifiedServiceRefMetaData serviceRefUMDM) {
final javax.xml.ws.soap.Addressing addressingAnnotation = getAnnotation(anElement, javax.xml.ws.soap.Addressing.class);
if (addressingAnnotation != null) {
serviceRefUMDM.setAddressingMedadata(new AddressingMetadata(true,
addressingAnnotation.enabled(),
addressingAnnotation.required(),
addressingAnnotation.responses().toString()));
}
}

代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration

private static void processAddressingAnnotation(final AnnotatedElement anElement, final UnifiedServiceRefMetaData serviceRefUMDM) {
final javax.xml.ws.soap.Addressing addressingAnnotation = getAnnotation(anElement, javax.xml.ws.soap.Addressing.class);
if (addressingAnnotation != null) {
serviceRefUMDM.setAddressingMedadata(new AddressingMetadata(true,
addressingAnnotation.enabled(),
addressingAnnotation.required(),
addressingAnnotation.responses().toString()));
}
}

代码示例来源:origin: org.jboss.as/jboss-as-webservices-server-integration

private static void processAddressingAnnotation(final AnnotatedElement anElement, final UnifiedServiceRefMetaData serviceRefUMDM) {
final javax.xml.ws.soap.Addressing addressingAnnotation = getAnnotation(anElement, javax.xml.ws.soap.Addressing.class);
if (addressingAnnotation != null) {
serviceRefUMDM.setAddressingAnnotationSpecified(true);
serviceRefUMDM.setAddressingEnabled(addressingAnnotation.enabled());
serviceRefUMDM.setAddressingRequired(addressingAnnotation.required());
serviceRefUMDM.setAddressingResponses(addressingAnnotation.responses().toString());
}
}

代码示例来源:origin: org.apache.geronimo.modules/geronimo-j2ee-builder

if (addressing == null) {
addressing = new Addressing();
addressing.setEnabled(addressingAnnotation.enabled());
addressing.setRequired(addressingAnnotation.required());
addressing.setResponses(AddressingResponses.valueOf(addressingAnnotation.responses().toString()));
} else {
if (addressing.getEnabled() == null) {
addressing.setEnabled(addressingAnnotation.enabled());

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

/**
* Returns a corresponding feature for a feature annotation(i.e which has
* {@link WebServiceFeatureAnnotation} meta annotation)
*
* @return corresponding feature for the annotation
* null, if the annotation is nota feature annotation
*/
public static WebServiceFeature getFeature(Annotation a) {
WebServiceFeature ftr = null;
if (!(a.annotationType().isAnnotationPresent(WebServiceFeatureAnnotation.class))) {
ftr = null;
} else if (a instanceof Addressing) {
Addressing addAnn = (Addressing) a;
try {
ftr = new AddressingFeature(addAnn.enabled(), addAnn.required(),addAnn.responses());
} catch(NoSuchMethodError e) {
//throw error. We can't default to Responses.ALL as we dont know if the user has not used 2.2 annotation with responses.
throw new RuntimeModelerException(ModelerMessages.RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(toJar(Which.which(Addressing.class))));
}
} else if (a instanceof MTOM) {
MTOM mtomAnn = (MTOM) a;
ftr = new MTOMFeature(mtomAnn.enabled(), mtomAnn.threshold());
} else if (a instanceof RespectBinding) {
RespectBinding rbAnn = (RespectBinding) a;
ftr = new RespectBindingFeature(rbAnn.enabled());
} else {
ftr = getWebServiceFeatureBean(a);
}
return ftr;
}

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

/**
* Returns a corresponding feature for a feature annotation(i.e which has
* {@link WebServiceFeatureAnnotation} meta annotation)
*
* @return corresponding feature for the annotation
* null, if the annotation is nota feature annotation
*/
public static WebServiceFeature getFeature(Annotation a) {
WebServiceFeature ftr = null;
if (!(a.annotationType().isAnnotationPresent(WebServiceFeatureAnnotation.class))) {
ftr = null;
} else if (a instanceof Addressing) {
Addressing addAnn = (Addressing) a;
try {
ftr = new AddressingFeature(addAnn.enabled(), addAnn.required(),addAnn.responses());
} catch(NoSuchMethodError e) {
//throw error. We can't default to Responses.ALL as we dont know if the user has not used 2.2 annotation with responses.
throw new RuntimeModelerException(ModelerMessages.RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(toJar(Which.which(Addressing.class))));
}
} else if (a instanceof MTOM) {
MTOM mtomAnn = (MTOM) a;
ftr = new MTOMFeature(mtomAnn.enabled(), mtomAnn.threshold());
} else if (a instanceof RespectBinding) {
RespectBinding rbAnn = (RespectBinding) a;
ftr = new RespectBindingFeature(rbAnn.enabled());
} else {
ftr = getWebServiceFeatureBean(a);
}
return ftr;
}

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

/**
* Returns a corresponding feature for a feature annotation(i.e which has
* {@link WebServiceFeatureAnnotation} meta annotation)
*
* @return corresponding feature for the annotation
* null, if the annotation is nota feature annotation
*/
public static WebServiceFeature getFeature(Annotation a) {
WebServiceFeature ftr = null;
if (!(a.annotationType().isAnnotationPresent(WebServiceFeatureAnnotation.class))) {
ftr = null;
} else if (a instanceof Addressing) {
Addressing addAnn = (Addressing) a;
try {
ftr = new AddressingFeature(addAnn.enabled(), addAnn.required(),addAnn.responses());
} catch(NoSuchMethodError e) {
//throw error. We can't default to Responses.ALL as we dont know if the user has not used 2.2 annotation with responses.
throw new RuntimeModelerException(ModelerMessages.RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(toJar(Which.which(Addressing.class))));
}
} else if (a instanceof MTOM) {
MTOM mtomAnn = (MTOM) a;
ftr = new MTOMFeature(mtomAnn.enabled(), mtomAnn.threshold());
} else if (a instanceof RespectBinding) {
RespectBinding rbAnn = (RespectBinding) a;
ftr = new RespectBindingFeature(rbAnn.enabled());
} else {
ftr = getWebServiceFeatureBean(a);
}
return ftr;
}

代码示例来源:origin: org.apache.axis2/axis2-metadata

boolean w3cAddressingEnabled = addressing.enabled();
boolean submissiOnAddressingEnabled= submissionAddressing.enabled();
boolean w3cAddressingEnabled = addressing.enabled();

代码示例来源:origin: apache/axis2-java

boolean w3cAddressingEnabled = addressing.enabled();
boolean submissiOnAddressingEnabled= submissionAddressing.enabled();
boolean w3cAddressingEnabled = addressing.enabled();

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

addressing.enabled(),
addressing.required(),
addressing.responses().toString()));

代码示例来源:origin: org.glassfish.main.webservices/webservices-connector

addressing.enabled(),
addressing.required(),
addressing.responses().toString()));

推荐阅读
author-avatar
超人懒懒_673
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有