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 TypeMethodDescriptionbooleanisDisabledEndpointListEmpty(String configKeyPrefix) Verifies whether the list of disabled endpoints is empty.booleanisEndpointDisabled(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
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
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
-