Package com.bradmcevoy.http.quota.StorageChecker

Examples of com.bradmcevoy.http.quota.StorageChecker.StorageErrorReason


        return false;
    }

    public StorageErrorReason checkStorageOnReplace( Request request, CollectionResource parentCol, Resource replaced, String host ) {
        for( StorageChecker sc : storageCheckers ) {
            StorageErrorReason res = sc.checkStorageOnReplace( request, parentCol, replaced, host );
            if( res != null ) {
                log.warn( "insufficient storage reason: " + res + " reported by: " + sc.getClass() );
                return res;
            }
        }
View Full Code Here


        return null;
    }

    public StorageErrorReason checkStorageOnAdd( Request request, CollectionResource nearestParent, Path parentPath, String host ) {
        for( StorageChecker sc : storageCheckers ) {
            StorageErrorReason res = sc.checkStorageOnAdd( request, nearestParent, parentPath, host );
            if( res != null ) {
                log.warn( "insufficient storage reason: " + res + " reported by: " + sc.getClass() );
                return res;
            }
        }
View Full Code Here

        urlToCreateOrUpdate = path.toString();

        Resource existingResource = manager.getResourceFactory().getResource( host, urlToCreateOrUpdate );
        ReplaceableResource replacee;

        StorageErrorReason storageErr = null;
        if( existingResource != null ) {
            //Make sure the parent collection is not locked by someone else
            if( handlerHelper.isLockedOut( request, existingResource ) ) {
                log.warn( "resource is locked, but not by the current user" );
                respondLocked( request, response, existingResource );
View Full Code Here

TOP

Related Classes of com.bradmcevoy.http.quota.StorageChecker.StorageErrorReason

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.