作者:超人懒懒_673 | 来源:互联网 | 2023-09-06 15:57
本文整理了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()));