/** * 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); }
/** * 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); }
/** * 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); }
static public boolean isFeatureEnabled(Class<? extends WebServiceFeature> type, WebServiceFeature[] features) { WebServiceFeature ftr = getFeature(features, type); return ftr != null && ftr.isEnabled(); }
static public boolean isFeatureEnabled(Class<? extends WebServiceFeature> type, WebServiceFeature[] features) { WebServiceFeature ftr = getFeature(features, type); return ftr != null && ftr.isEnabled(); }
/** * 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); } } }
static public boolean isFeatureEnabled(Class<? extends WebServiceFeature> type, WebServiceFeature[] features) { WebServiceFeature ftr = getFeature(features, type); return ftr != null && ftr.isEnabled(); }
/** * 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); } } }
/** * 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); } } }
/** * * @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); } } }
/** * * @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); } } }
/** * * @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); } } }
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));
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));
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));