public class DefaultStorageChecker extends Object implements StorageChecker
StorageChecker.StorageErrorReason| Constructor and Description |
|---|
DefaultStorageChecker() |
| Modifier and Type | Method and Description |
|---|---|
StorageChecker.StorageErrorReason |
checkStorageOnAdd(Request request,
CollectionResource nearestParent,
Path parentPath,
String host)
Check to see if the operation should be allowed, when there is no existing
resource.
|
StorageChecker.StorageErrorReason |
checkStorageOnReplace(Request request,
CollectionResource parent,
Resource replaced,
String host)
Check to see if the operation should be allowed, when an existing resource
is to be overwritten or replaced.
|
public StorageChecker.StorageErrorReason checkStorageOnReplace(Request request, CollectionResource parent, Resource replaced, String host)
StorageCheckercheckStorageOnReplace in interface StorageCheckerreplaced - - the resource being replacedpublic StorageChecker.StorageErrorReason checkStorageOnAdd(Request request, CollectionResource nearestParent, Path parentPath, String host)
StorageCheckercheckStorageOnAdd in interface StorageCheckerparentPath - - the path to the parent collection. E.g. http://abc.com/path = /pathCopyright © 2021 McEvoy Software Ltd. All rights reserved.