Java Code Examples for javax.xml.ws.BindingType#value()

The following examples show how to use javax.xml.ws.BindingType#value() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BindingID.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 2
Source File: BindingID.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 3
Source File: BindingID.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 4
Source File: BindingID.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 5
Source File: BindingID.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 6
Source File: BindingID.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 7
Source File: BindingID.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 8
Source File: BindingID.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 9
Source File: JaxWsImplementorInfo.java    From cxf with Apache License 2.0 5 votes vote down vote up
public String getBindingType() {
    BindingType bType = implementorClass.getAnnotation(BindingType.class);
    if (bType != null) {
        return bType.value();
    }
    return SOAPBinding.SOAP11HTTP_BINDING;
}
 
Example 10
Source File: JaxWsImplementorInfoImpl.java    From tomee with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example 11
Source File: JaxWsUtils.java    From tomee with Apache License 2.0 5 votes vote down vote up
public static String getBindingUriFromAnn(final Class<?> clazz) {
    final BindingType bindingType = clazz.getAnnotation(BindingType.class);
    if (bindingType != null) {
        return bindingType.value();
    }
    return null;
}