Package org.apache.cxf.endpoint

Examples of org.apache.cxf.endpoint.ConduitSelectorHolder


    private FailoverTargetSelector targetSelector;
   
    @Override
    protected void initializeProvider(InterceptorProvider provider, Bus bus) {
        if (provider instanceof ConduitSelectorHolder) {
            ConduitSelectorHolder csHolder = (ConduitSelectorHolder) provider;
            Endpoint endpoint = csHolder.getConduitSelector().getEndpoint();
            ConduitSelector conduitSelector = initTargetSelector(endpoint);
            csHolder.setConduitSelector(conduitSelector);
        }
    }
View Full Code Here


    private FailoverTargetSelector targetSelector;
   
    @Override
    protected void initializeProvider(InterceptorProvider provider, Bus bus) {
        if (provider instanceof ConduitSelectorHolder) {
            ConduitSelectorHolder csHolder = (ConduitSelectorHolder) provider;
            Endpoint endpoint = csHolder.getConduitSelector().getEndpoint();
            ConduitSelector conduitSelector = initTargetSelector(endpoint);
            csHolder.setConduitSelector(conduitSelector);
        }
    }
View Full Code Here

    // this method will be used for JAXRS client
    public void initialize(InterceptorProvider interceptorProvider, Bus bus) {
        // try to find if the InterceptorProvider is a ConduitSelectorHolder
        if (interceptorProvider instanceof ConduitSelectorHolder) {
            ConduitSelectorHolder holder = (ConduitSelectorHolder) interceptorProvider;
            // get the endpoint of the original ConduitSelector
            ConduitSelector oldSelector = holder.getConduitSelector();
            LoadBalanceTargetSelector selector = getDefaultLoadBalanceTargetSelector();
            selector.setEndpoint(oldSelector.getEndpoint());
            try {
                selector.setLoadBalanceStrategy(getLoadBalanceStrategy());
                holder.setConduitSelector(selector);
            } catch (Exception e) {
                LOG.error("Cannot setup the LoadBalanceStrategy due to " + e);
            }
            // setup the BusLifeCycleListener
            BusLifeCycleManager manager = bus.getExtension(BusLifeCycleManager.class);
View Full Code Here

TOP

Related Classes of org.apache.cxf.endpoint.ConduitSelectorHolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.