{
ObjectImpl oi =
(ObjectImpl)((ServerRequestInfoImpl) ri).target();
org.jacorb.orb.Delegate d =
(org.jacorb.orb.Delegate)oi._get_delegate();
SASPolicy policy =
(SASPolicy)d.getPOA().getPolicy(SAS_POLICY_TYPE.value);
if (policy != null)
sasValues = policy.value();
}
catch (BAD_PARAM e)
{
if (logger.isDebugEnabled())
logger.debug("No SAS Policy for "+ri.operation());
}
catch (Exception e)
{
if (logger.isWarnEnabled())
logger.warn("Error fetching SAS policy for "+
ri.operation()+": "+e);
throw new org.omg.CORBA.NO_PERMISSION("Error fetching SAS policy: "+e,
MinorCodes.SAS_TSS_FAILURE,
CompletionStatus.COMPLETED_NO);
}
if (sasValues == null)
return;
if (sasValues.targetRequires == 0 && sasValues.targetSupports == 0)
return;
ATLASPolicyValues atlasValues = null;
try
{
ObjectImpl oi = (ObjectImpl)((ServerRequestInfoImpl) ri).target();
org.jacorb.orb.Delegate d = (org.jacorb.orb.Delegate)oi._get_delegate();
ATLASPolicy policy = (ATLASPolicy)d.getPOA().getPolicy(ATLAS_POLICY_TYPE.value);
if (policy != null)
atlasValues = policy.value();
}
catch (BAD_PARAM e)
{
if (logger.isDebugEnabled())
logger.debug("No ATLAS Policy for "+ri.operation());