private void calcTimingPolicies()
{
ServiceContext ctx = inputStream.getServiceContext(INVOCATION_POLICIES.value);
if (ctx != null)
{
final CDRInputStream input = new CDRInputStream (null, ctx.context_data);
try
{
input.openEncapsulatedArray();
PolicyValue[] policy = PolicyValueSeqHelper.read (input);
for (int i=0; i < policy.length; i++)
{
if (policy[i].ptype == REQUEST_START_TIME_POLICY_TYPE.value)
{
requestStartTime = Time.fromCDR (policy[i].pvalue);
}
else if (policy[i].ptype == REQUEST_END_TIME_POLICY_TYPE.value)
{
requestEndTime = Time.fromCDR (policy[i].pvalue);
}
else if (policy[i].ptype == REPLY_END_TIME_POLICY_TYPE.value)
{
replyEndTime = Time.fromCDR (policy[i].pvalue);
}
}
}
finally
{
input.close();
}
}
}