Hi, I would like to have a little clarification regarding canAccess method in RoleBasedAccessRateController of org.wso2.carbon.throttle.core.
Consider following example AccessInformation info = roleBasedAccessControler.canAccess(throttleContext, consumerKey, throttleId); I want to filter out the situation where info.isAccessAllowed() = false due to the reason "exceeded the allocated quota". Is there a more suitable approach to do this check other than info. getFaultReason().contains("exceeded the allocated quota")? Thanks. -- Best Regards, *Thilini Cooray* Software Engineer Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194> E-mail : thili...@wso2.com WSO2 Inc. www.wso2.com lean.enterprise.middleware
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev