本文整理汇总了Java中javax.xml.ws.BindingType类的典型用法代码示例。如果您正苦于以下问题:Java BindingType类的具体用法?Java BindingType怎么用?Java BindingType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BindingType类属于javax.xml.ws包,在下文中一共展示了BindingType类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: annotatedElementLoaderProvider
import javax.xml.ws.BindingType; //导入依赖的package包/类
@Provides
public static AnnotatedElementLoader annotatedElementLoaderProvider() {
return new AnnotatedElementLoader() {
@Override
protected List<Class<?>> load(
Class<? extends Annotation> annoClass,
boolean loadNonPublic,
boolean loadAbstract
) {
if (annoClass == BindingType.class) {
if (loadNonPublic && loadAbstract) {
return C.list(PublicAnnotated.class, PrivateAnnotated.class, AbstractAnnotated.class);
}
if (loadNonPublic) {
return C.list(PublicAnnotated.class, PrivateAnnotated.class);
}
if (loadAbstract) {
return C.list(PublicAnnotated.class, AbstractAnnotated.class);
}
return C.<Class<?>>list(PublicAnnotated.class);
}
throw E.unsupport();
}
};
}
示例2: 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;
}
示例3: 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;
}
示例4: attachBindingTypeAnnotation
import javax.xml.ws.BindingType; //导入依赖的package包/类
/**
* This method will be used to attach @BindingType annotation data to the
* <code>DescriptionBuilderComposite</code>
*
* @param composite - <code>DescriptionBuildercomposite</code>
*/
private void attachBindingTypeAnnotation(DescriptionBuilderComposite composite) {
BindingType bindingType = (BindingType)ConverterUtils.getAnnotation(
BindingType.class, serviceClass);
if (bindingType != null) {
// Attach @BindingType annotation data
BindingTypeAnnot btAnnot = BindingTypeAnnot.createBindingTypeAnnotImpl();
btAnnot.setValue(bindingType.value());
composite.setBindingTypeAnnot(btAnnot);
}
}
示例5: 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;
}
示例6: 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;
}
示例7: getSoapNS
import javax.xml.ws.BindingType; //导入依赖的package包/类
protected String getSoapNS(Class<?> clazz) {
BindingType bType = clazz.getAnnotation(BindingType.class);
if (bType != null) {
if (SOAPBinding.SOAP12HTTP_BINDING.equals(bType.value()))
return WSDLConstants.NS_SOAP12;
}
return WSDLConstants.NS_SOAP11;
}
示例8: getAnnoBindingType
import javax.xml.ws.BindingType; //导入依赖的package包/类
public BindingType getAnnoBindingType() {
if (bindingTypeAnnotation == null) {
bindingTypeAnnotation = composite.getBindingTypeAnnot();
}
return bindingTypeAnnotation;
}
示例9: getAnnoBindingType
import javax.xml.ws.BindingType; //导入依赖的package包/类
public BindingType getAnnoBindingType();