Interface EndpointRestrictionsConfigStrategy
-
- All Known Implementing Classes:
DefaultEndpointRestrictionsConfigStrategy
public interface EndpointRestrictionsConfigStrategyStrategy 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 booleanisDisabledEndpointListEmpty(java.lang.String configKeyPrefix)Verifies whether the list of disabled endpoints is empty.booleanisEndpointDisabled(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 prefixendpointId- 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:
trueif the list is empty
-
-