本文整理汇总了Java中javax.xml.ws.BindingType.value方法的典型用法代码示例。如果您正苦于以下问题:Java BindingType.value方法的具体用法?Java BindingType.value怎么用?Java BindingType.value使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.xml.ws.BindingType
的用法示例。
在下文中一共展示了BindingType.value方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: parse
import javax.xml.ws.BindingType; //导入方法依赖的package包/类
/**
* Figures out the binding from {@link BindingType} annotation.
*
* @return
* default to {@link BindingID#SOAP11_HTTP}, if no such annotation is present.
* @see #parse(String)
*/
public static @NotNull BindingID parse(Class<?> implClass) {
BindingType bindingType = implClass.getAnnotation(BindingType.class);
if (bindingType != null) {
String bindingId = bindingType.value();
if (bindingId.length() > 0) {
return BindingID.parse(bindingId);
}
}
return SOAP11_HTTP;
}
示例2: isMtomEnabled
import javax.xml.ws.BindingType; //导入方法依赖的package包/类
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;
}
示例3: getBindingType
import javax.xml.ws.BindingType; //导入方法依赖的package包/类
@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;
}
示例4: getBindingUriFromAnn
import javax.xml.ws.BindingType; //导入方法依赖的package包/类
public static String getBindingUriFromAnn(final Class<?> clazz) {
final BindingType bindingType = clazz.getAnnotation(BindingType.class);
if (bindingType != null) {
return bindingType.value();
}
return null;
}