Examples of DAVDepth


Examples of org.tmatesoft.svn.core.internal.server.dav.DAVDepth

            //TODO: what body should we send?
            sendError(HttpServletResponse.SC_NOT_FOUND, null);
            return;
        }
       
        DAVDepth depth = getRequestDepth(DAVDepth.DEPTH_INFINITY);
        //TODO: check the depth is not less than 0; if it is, send BAD_REQUEST
       
        if (depth == DAVDepth.DEPTH_INFINITY && resource.isCollection()) {
            DAVConfig config = getConfig();
            if (!config.isAllowDepthInfinity()) {
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.server.dav.DAVDepth

    protected DAVDepth getRequestDepth(DAVDepth defaultDepth) throws SVNException {
        String depth = getRequestHeader(DEPTH_HEADER);
        if (depth == null) {
            return defaultDepth;
        }
        DAVDepth result = DAVDepth.parseDepth(depth);
        if (result == null) {
            SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.RA_DAV_MALFORMED_DATA, "Invalid depth ''{0}''", depth), SVNLogType.NETWORK);
        }
        return result;
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.server.dav.DAVDepth

    }

    public void execute() throws SVNException {
        long readLength = readInput(false);
       
        DAVDepth depth = null;
        try {
            depth = getRequestDepth(DAVDepth.DEPTH_INFINITY);
        } catch (SVNException svne) {
            throw DAVException.convertError(svne.getErrorMessage(), HttpServletResponse.SC_BAD_REQUEST, null, null);
        }
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.server.dav.DAVDepth

                    HttpServletResponse.SC_FORBIDDEN);
            return;
        }
       
        boolean isDir = resource.isCollection();
        DAVDepth depth = null;
        try {
            depth = getRequestDepth(DAVDepth.DEPTH_INFINITY);
        } catch (SVNException svne) {
            throw DAVException.convertError(svne.getErrorMessage(), HttpServletResponse.SC_BAD_REQUEST, null, null);
        }
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.server.dav.DAVDepth

       
        return provider;
    }

    public void addLock(DAVLock lock, DAVResource resource) throws DAVException {
        DAVDepth depth = lock.getDepth();
        if (!resource.isCollection()) {
            depth = DAVDepth.DEPTH_ZERO;
        }
       
        appendLock(resource, lock);
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.server.dav.DAVDepth

        if (!resource.exists()) {
            sendError(HttpServletResponse.SC_NOT_FOUND, null);
            return;
        }
       
        DAVDepth depth = getRequestDepth(DAVDepth.DEPTH_INFINITY);
        if (resource.isCollection() && depth != DAVDepth.DEPTH_INFINITY) {
            SVNDebugLog.getDefaultLog().logError(SVNLogType.NETWORK, "Depth must be \"infinity\" for DELETE of a collection.");
            sendError(HttpServletResponse.SC_BAD_REQUEST, null);
            return;
        }
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.server.dav.DAVDepth

*/
public class DAVLockRequest extends DAVRequest {
    private static final DAVElement LOCK_INFO = DAVElement.getElement(DAVElement.DAV_NAMESPACE, "lockinfo");

    public DAVLock parseLockInfo(DAVLockHandler handler, DAVResource resource, List namespaces) throws DAVException {
        DAVDepth depth = null;
        try {
            depth = handler.getRequestDepth(DAVDepth.DEPTH_INFINITY);
        } catch (SVNException svne) {
            throw DAVException.convertError(svne.getErrorMessage(), HttpServletResponse.SC_BAD_REQUEST, null, null);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.