net.krecan.m2_proxy.store
Interface StoreValidator
- All Known Implementing Classes:
- RegExpStoreValidator
public interface StoreValidator
Validates reources in the store. Decides whether given resource is valid in the store and whether
gien resource should be stored in the store.
- Author:
- Lukas Krecan
EVERYTHING_VALID_VALIDATOR
static final StoreValidator EVERYTHING_VALID_VALIDATOR
NOTHING_VALID_VALIDATOR
static final StoreValidator NOTHING_VALID_VALIDATOR
shouldStoreResource
boolean shouldStoreResource(Resource resource)
- Decides whether we should store the resource
- Parameters:
resourcerPath
-
- Returns:
isResourceValid
boolean isResourceValid(Resource resource)
- Decides if the entry in the store is valid. If resource is null, returns false.
- Parameters:
resourcePath
- lastModified
-
- Returns:
Copyright © 2006 null. All Rights Reserved.