Package org.apache.yoko.orb.OB

Examples of org.apache.yoko.orb.OB.ConnectionReusePolicy


        // Find out whether private clients are requested
        //
        boolean privateClients = false;
        for (int i = 0; i < policies.length; i++) {
            if (policies[i].policy_type() == CONNECTION_REUSE_POLICY_ID.value) {
                ConnectionReusePolicy p = ConnectionReusePolicyHelper
                        .narrow(policies[i]);
                if (p.value() == false)
                    privateClients = true;
                break;
            }
        }

        //
        // Get the protocol policy, if any
        //
        ProtocolPolicy protocolPolicy = null;
        for (int i = 0; i < policies.length; i++) {
            if (policies[i].policy_type() == PROTOCOL_POLICY_ID.value) {
                protocolPolicy = ProtocolPolicyHelper.narrow(policies[i]);
                break;
            }
        }

        //
        // check whether the BiDir policy is enabled
        //
        boolean enableBidir = false;
        for (int i = 0; i < policies.length; i++) {
            if (policies[i].policy_type() == org.omg.BiDirPolicy.BIDIRECTIONAL_POLICY_TYPE.value) {
                org.omg.BiDirPolicy.BidirectionalPolicy p = org.omg.BiDirPolicy.BidirectionalPolicyHelper
                        .narrow(policies[i]);
                if (p.value() == org.omg.BiDirPolicy.BOTH.value)
                    enableBidir = true;
            }
        }

        java.util.Vector pairs = new java.util.Vector();
View Full Code Here


        // Find out whether private clients are requested
        //
        boolean privateClients = false;
        for (int i = 0; i < policies.length; i++) {
            if (policies[i].policy_type() == CONNECTION_REUSE_POLICY_ID.value) {
                ConnectionReusePolicy p = ConnectionReusePolicyHelper
                        .narrow(policies[i]);
                if (p.value() == false)
                    privateClients = true;
                break;
            }
        }

        //
        // Get the protocol policy, if any
        //
        ProtocolPolicy protocolPolicy = null;
        for (int i = 0; i < policies.length; i++) {
            if (policies[i].policy_type() == PROTOCOL_POLICY_ID.value) {
                protocolPolicy = ProtocolPolicyHelper.narrow(policies[i]);
                break;
            }
        }

        //
        // check whether the BiDir policy is enabled
        //
        boolean enableBidir = false;
        for (int i = 0; i < policies.length; i++) {
            if (policies[i].policy_type() == org.omg.BiDirPolicy.BIDIRECTIONAL_POLICY_TYPE.value) {
                org.omg.BiDirPolicy.BidirectionalPolicy p = org.omg.BiDirPolicy.BidirectionalPolicyHelper
                        .narrow(policies[i]);
                if (p.value() == org.omg.BiDirPolicy.BOTH.value)
                    enableBidir = true;
            }
        }

        java.util.Vector pairs = new java.util.Vector();
View Full Code Here

TOP

Related Classes of org.apache.yoko.orb.OB.ConnectionReusePolicy

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.