public String getBindingType() { BindingType bType = implementorClass.getAnnotation(BindingType.class); if (bType != null) { return bType.value(); } return SOAPBinding.SOAP11HTTP_BINDING; } }
public static String getBindingUriFromAnn(final Class<?> clazz) { final BindingType bindingType = clazz.getAnnotation(BindingType.class); if (bindingType != null) { return bindingType.value(); } return null; } }
public static String getBindingUriFromAnn(Class<?> clazz) { BindingType bindingType = clazz.getAnnotation(BindingType.class); if (bindingType != null) { return bindingType.value(); } return null; } }
public String getBindingType() { BindingType bType = implementorClass.getAnnotation(BindingType.class); if (bType != null) { return bType.value(); } return SOAPBinding.SOAP11HTTP_BINDING; } }
public static String getBindingUriFromAnn(final Class<?> clazz) { final BindingType bindingType = clazz.getAnnotation(BindingType.class); if (bindingType != null) { return bindingType.value(); } return null; } }
@Override public String getBindingType() { final BindingType bType = getImplementorClass().getAnnotation(BindingType.class); if (bType != null) { return bType.value(); } if (this.bindingURI != null) { return this.bindingURI; } return SOAPBinding.SOAP11HTTP_BINDING; } }
protected boolean isMtomEnabled(Class<?> beanClass) { BindingType bindingType = (BindingType)beanClass.getAnnotation(BindingType.class); MTOM mtom = (MTOM)beanClass.getAnnotation(MTOM.class); boolean mtomEnabled = mtom != null && mtom.enabled(); if (!mtomEnabled && bindingType != null) { String binding = bindingType.value(); mtomEnabled = binding.equals(SOAPBinding.SOAP11HTTP_MTOM_BINDING) || binding.equals(SOAPBinding.SOAP12HTTP_MTOM_BINDING); } return mtomEnabled; }
@Override public String getBindingType() { final BindingType bType = getImplementorClass().getAnnotation(BindingType.class); if (bType != null) { return bType.value(); } if (this.bindingURI != null) { return this.bindingURI; } return SOAPBinding.SOAP11HTTP_BINDING; } }
public static BindingTypeAnnot createFromAnnotation(Annotation annotation) { BindingTypeAnnot returnAnnot = null; if (annotation != null && annotation instanceof javax.xml.ws.BindingType) { javax.xml.ws.BindingType bt = (javax.xml.ws.BindingType) annotation; returnAnnot = new BindingTypeAnnot(bt.value()); } return returnAnnot; }
public static BindingTypeAnnot createFromAnnotation(Annotation annotation) { BindingTypeAnnot returnAnnot = null; if (annotation != null && annotation instanceof javax.xml.ws.BindingType) { javax.xml.ws.BindingType bt = (javax.xml.ws.BindingType) annotation; returnAnnot = new BindingTypeAnnot(bt.value()); } return returnAnnot; }
protected boolean isSOAP12() { if (!this.context.optionSet(ToolConstants.CFG_SOAP12)) { BindingType bType = getServiceClass().getAnnotation(BindingType.class); if (bType != null) { return SOAPBinding.SOAP12HTTP_BINDING.equals(bType.value()); } return false; } return true; }
protected boolean isSOAP12() { if (!this.context.optionSet(ToolConstants.CFG_SOAP12)) { BindingType bType = getServiceClass().getAnnotation(BindingType.class); if (bType != null) { return SOAPBinding.SOAP12HTTP_BINDING.equals(bType.value()); } return false; } return true; }
protected boolean isSOAP12() { if (!this.context.optionSet(ToolConstants.CFG_SOAP12)) { BindingType bType = getServiceClass().getAnnotation(BindingType.class); if (bType != null) { return SOAPBinding.SOAP12HTTP_BINDING.equals(bType.value()); } return false; } return true; }
protected boolean isSOAP12() { if (!this.context.optionSet(ToolConstants.CFG_SOAP12)) { BindingType bType = getServiceClass().getAnnotation(BindingType.class); if (bType != null) { return SOAPBinding.SOAP12HTTP_BINDING.equals(bType.value()); } return false; } return true; }
public String getAnnoBindingTypeValue() { if (bindingTypeValue == null) { if (getAnnoBindingType() != null && !DescriptionUtils.isEmpty(getAnnoBindingType().value())) { bindingTypeValue = getAnnoBindingType().value(); } else { // No BindingType annotation present or value was empty; use default value bindingTypeValue = BindingType_DEFAULT; } } return bindingTypeValue; }
public String getAnnoBindingTypeValue() { if (bindingTypeValue == null) { if (getAnnoBindingType() != null && !DescriptionUtils.isEmpty(getAnnoBindingType().value())) { bindingTypeValue = getAnnoBindingType().value(); } else { // No BindingType annotation present or value was empty; use default value bindingTypeValue = BindingType_DEFAULT; } } return bindingTypeValue; }
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; } }
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; } }
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; } }