Class MetadataPolicyViaLocationFetchingStrategy

All Implemented Interfaces:
Function<CriteriaSet,Map<String,MetadataPolicy>>, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent

public class MetadataPolicyViaLocationFetchingStrategy extends AbstractDynamicHTTPFetchingStrategy<Map<String,MetadataPolicy>> implements Function<CriteriaSet,Map<String,MetadataPolicy>>
A fetching strategy that exploits ResourceLocationCriterion from the given CriteriaSet to resolve a location for metadata policy. If the value starts with http:// or https://, the policy is fetched via HttpClient. In other cases the location is expected to be a file path. Possibly existing file: prefix is removed before loading the file.