Java Code Examples for com.sun.xml.internal.ws.binding.BindingImpl#create()

The following examples show how to use com.sun.xml.internal.ws.binding.BindingImpl#create() . 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: PortInfo.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface,
            BindingImpl existingBinding) {
            if (existingBinding != null) {
                    webServiceFeatures.addAll(existingBinding.getFeatures());
            }

    Iterable<WebServiceFeature> configFeatures;
    //TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving
    // ability to turn off the WSDL/Policy based features and its associated tubes.

    //Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration
    if (portModel != null) {
        // could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap
        // for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(),
        // So, using here WsdlModel for merging is right.

        // merge features from WSDL
        configFeatures = portModel.getFeatures();
    } else {
        configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName);
    }
    webServiceFeatures.mergeFeatures(configFeatures, false);

    // merge features from interceptor
    webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false);

    BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray());
    owner.getHandlerConfigurator().configureHandlers(this,bindingImpl);
    return bindingImpl;
}
 
Example 2
Source File: PortInfo.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface,
            BindingImpl existingBinding) {
            if (existingBinding != null) {
                    webServiceFeatures.addAll(existingBinding.getFeatures());
            }

    Iterable<WebServiceFeature> configFeatures;
    //TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving
    // ability to turn off the WSDL/Policy based features and its associated tubes.

    //Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration
    if (portModel != null) {
        // could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap
        // for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(),
        // So, using here WsdlModel for merging is right.

        // merge features from WSDL
        configFeatures = portModel.getFeatures();
    } else {
        configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName);
    }
    webServiceFeatures.mergeFeatures(configFeatures, false);

    // merge features from interceptor
    webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false);

    BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray());
    owner.getHandlerConfigurator().configureHandlers(this,bindingImpl);
    return bindingImpl;
}
 
Example 3
Source File: EndpointImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private EndpointImpl(@NotNull BindingID bindingId, Object impl, @NotNull Class implClass,
                    Invoker invoker, WebServiceFeature ... features) {
    binding = BindingImpl.create(bindingId, features);
    this.implClass = implClass;
    this.invoker = invoker;
    this.implementor = impl;
}
 
Example 4
Source File: EndpointImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private EndpointImpl(@NotNull BindingID bindingId, Object impl, @NotNull Class implClass,
                    Invoker invoker, WebServiceFeature ... features) {
    binding = BindingImpl.create(bindingId, features);
    this.implClass = implClass;
    this.invoker = invoker;
    this.implementor = impl;
}
 
Example 5
Source File: PortInfo.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface,
            BindingImpl existingBinding) {
            if (existingBinding != null) {
                    webServiceFeatures.addAll(existingBinding.getFeatures());
            }

    Iterable<WebServiceFeature> configFeatures;
    //TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving
    // ability to turn off the WSDL/Policy based features and its associated tubes.

    //Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration
    if (portModel != null) {
        // could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap
        // for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(),
        // So, using here WsdlModel for merging is right.

        // merge features from WSDL
        configFeatures = portModel.getFeatures();
    } else {
        configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName);
    }
    webServiceFeatures.mergeFeatures(configFeatures, false);

    // merge features from interceptor
    webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false);

    BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray());
    owner.getHandlerConfigurator().configureHandlers(this,bindingImpl);
    return bindingImpl;
}
 
Example 6
Source File: EndpointImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private EndpointImpl(@NotNull BindingID bindingId, Object impl, @NotNull Class implClass,
                    Invoker invoker, WebServiceFeature ... features) {
    binding = BindingImpl.create(bindingId, features);
    this.implClass = implClass;
    this.invoker = invoker;
    this.implementor = impl;
}
 
Example 7
Source File: EndpointImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private EndpointImpl(@NotNull BindingID bindingId, Object impl, @NotNull Class implClass,
                    Invoker invoker, WebServiceFeature ... features) {
    binding = BindingImpl.create(bindingId, features);
    this.implClass = implClass;
    this.invoker = invoker;
    this.implementor = impl;
}
 
Example 8
Source File: EndpointImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private EndpointImpl(@NotNull BindingID bindingId, Object impl, @NotNull Class implClass,
                    Invoker invoker, WebServiceFeature ... features) {
    binding = BindingImpl.create(bindingId, features);
    this.implClass = implClass;
    this.invoker = invoker;
    this.implementor = impl;
}
 
Example 9
Source File: PortInfo.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface,
            BindingImpl existingBinding) {
            if (existingBinding != null) {
                    webServiceFeatures.addAll(existingBinding.getFeatures());
            }

    Iterable<WebServiceFeature> configFeatures;
    //TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving
    // ability to turn off the WSDL/Policy based features and its associated tubes.

    //Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration
    if (portModel != null) {
        // could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap
        // for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(),
        // So, using here WsdlModel for merging is right.

        // merge features from WSDL
        configFeatures = portModel.getFeatures();
    } else {
        configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName);
    }
    webServiceFeatures.mergeFeatures(configFeatures, false);

    // merge features from interceptor
    webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false);

    BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray());
    owner.getHandlerConfigurator().configureHandlers(this,bindingImpl);
    return bindingImpl;
}
 
Example 10
Source File: EndpointImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private EndpointImpl(@NotNull BindingID bindingId, Object impl, @NotNull Class implClass,
                    Invoker invoker, WebServiceFeature ... features) {
    binding = BindingImpl.create(bindingId, features);
    this.implClass = implClass;
    this.invoker = invoker;
    this.implementor = impl;
}
 
Example 11
Source File: PortInfo.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface,
            BindingImpl existingBinding) {
            if (existingBinding != null) {
                    webServiceFeatures.addAll(existingBinding.getFeatures());
            }

    Iterable<WebServiceFeature> configFeatures;
    //TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving
    // ability to turn off the WSDL/Policy based features and its associated tubes.

    //Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration
    if (portModel != null) {
        // could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap
        // for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(),
        // So, using here WsdlModel for merging is right.

        // merge features from WSDL
        configFeatures = portModel.getFeatures();
    } else {
        configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName);
    }
    webServiceFeatures.mergeFeatures(configFeatures, false);

    // merge features from interceptor
    webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false);

    BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray());
    owner.getHandlerConfigurator().configureHandlers(this,bindingImpl);
    return bindingImpl;
}
 
Example 12
Source File: BindingID.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public final @NotNull WSBinding createBinding(WebServiceFeature... features) {
    return BindingImpl.create(this, features);
}
 
Example 13
Source File: BindingID.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public final @NotNull WSBinding createBinding(WebServiceFeature... features) {
    return BindingImpl.create(this, features);
}
 
Example 14
Source File: BindingID.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public final @NotNull WSBinding createBinding(WebServiceFeature... features) {
    return BindingImpl.create(this, features);
}
 
Example 15
Source File: BindingID.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public final @NotNull WSBinding createBinding(WebServiceFeature... features) {
    return BindingImpl.create(this, features);
}
 
Example 16
Source File: BindingID.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public final @NotNull WSBinding createBinding(WebServiceFeature... features) {
    return BindingImpl.create(this, features);
}
 
Example 17
Source File: BindingID.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates an instance of {@link WSBinding} (which is conceptually an "use"
 * of {@link BindingID}) from a {@link BindingID}.
 *
 * @return
 *      Always a new instance.
 */
public final @NotNull WSBinding createBinding() {
    return BindingImpl.create(this);
}
 
Example 18
Source File: BindingID.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates an instance of {@link WSBinding} (which is conceptually an "use"
 * of {@link BindingID}) from a {@link BindingID}.
 *
 * @return
 *      Always a new instance.
 */
public final @NotNull WSBinding createBinding() {
    return BindingImpl.create(this);
}
 
Example 19
Source File: BindingID.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates an instance of {@link WSBinding} (which is conceptually an "use"
 * of {@link BindingID}) from a {@link BindingID}.
 *
 * @return
 *      Always a new instance.
 */
public final @NotNull WSBinding createBinding() {
    return BindingImpl.create(this);
}
 
Example 20
Source File: BindingID.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates an instance of {@link WSBinding} (which is conceptually an "use"
 * of {@link BindingID}) from a {@link BindingID}.
 *
 * @return
 *      Always a new instance.
 */
public final @NotNull WSBinding createBinding() {
    return BindingImpl.create(this);
}