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

    Modifier and Type
    Method
    Description
    boolean
    Verifies whether the list of disabled endpoints is empty.
    boolean
    isEndpointDisabled(String configKeyPrefix, String endpointId)
    Specifies whether the endpoint is disabled in the configuration, based on given configuration key prefix and endpoint identifier
  • Method Details

    • isEndpointDisabled

      boolean isEndpointDisabled(String configKeyPrefix, 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(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