Class DefaultStorageChecker

java.lang.Object
io.milton.http.quota.DefaultStorageChecker
All Implemented Interfaces:
StorageChecker

public class DefaultStorageChecker extends Object implements StorageChecker
Default storage checking mechanism checks to see if the nearest parent resource implements QuotaResource, and if so uses the available bytes property from that to determine whether to allow a PUT Note that there is not always information available giving the size of new content, and in the case of replacing an existing resource, we might not have that resource's size. In these cases we cant determine perfectly whether we should allow or reject a PUT request. So we allow these requests if the available storage is greater then zero, but disallow if less then or equal to zero.
Author:
brad
  • Constructor Details

    • DefaultStorageChecker

      public DefaultStorageChecker()
  • Method Details