Interface EndpointRestrictionsConfigStrategy

  • All Known Implementing Classes:
    DefaultEndpointRestrictionsConfigStrategy

    public interface EndpointRestrictionsConfigStrategy
    Strategy used to determine whether the API endpoint is disabled based on a configuration.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isDisabledEndpointListEmpty​(java.lang.String configKeyPrefix)
      Verifies whether the list of disabled endpoints is empty.
      boolean isEndpointDisabled​(java.lang.String configKeyPrefix, java.lang.String endpointId)
      Specifies whether the endpoint is disabled in the configuration, based on given configuration key prefix and endpoint identifier
    • Method Detail

      • isEndpointDisabled

        boolean isEndpointDisabled​(java.lang.String configKeyPrefix,
                                   java.lang.String endpointId)
        Specifies whether the endpoint is disabled in the configuration, based on given configuration key prefix and endpoint identifier
        Parameters:
        configKeyPrefix - * configuration key prefix
        endpointId - endpoint identifier
        Returns:
        true - means the endpoint is disabled
      • isDisabledEndpointListEmpty

        boolean isDisabledEndpointListEmpty​(java.lang.String configKeyPrefix)
        Verifies whether the list of disabled endpoints is empty.

        Parameters:
        configKeyPrefix - configuration key prefix used to create configuration property key
        Returns:
        true if the list is empty