// 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();