Class APIManagerQuotaAdapter


  • public class APIManagerQuotaAdapter
    extends Object
    • Constructor Detail

      • APIManagerQuotaAdapter

        public APIManagerQuotaAdapter()
    • Method Detail

      • getQuota

        public APIQuota getQuota​(String quotaId,
                                 API api,
                                 boolean addRestrictedAPI,
                                 boolean ignoreSystemQuotas)
                          throws AppException
        Returns the configured quotas for the quota ID from the API manager.
        Parameters:
        quotaId - is either system or application default or a concrete quota ID
        api - is the quote for an API, then it can be passed here directly. This is then bound to the quote as restrictedAPI
        addRestrictedAPI - If false, then no effort is made to load the restricted api and bind it to the quote during deserialization. In this case the api should be passed. Defaults to true
        ignoreSystemQuotas - If true, then no quotas are returned with the switch: system: true. This is useful if quotas for applications are requested and they should not contain application default quotas.
        Returns:
        the configured quotas
        Throws:
        AppException - is something goes wrong.