jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r382316 - /incubator/jackrabbit/trunk/contrib/jcr-server/webapp/src/java/org/apache/jackrabbit/j2ee/SimpleWebdavServlet.java
Date Thu, 02 Mar 2006 08:00:50 GMT
Author: angela
Date: Thu Mar  2 00:00:47 2006
New Revision: 382316

URL: http://svn.apache.org/viewcvs?rev=382316&view=rev
Log:
remove limitation to webdav 1,2 methods

Modified:
    incubator/jackrabbit/trunk/contrib/jcr-server/webapp/src/java/org/apache/jackrabbit/j2ee/SimpleWebdavServlet.java

Modified: incubator/jackrabbit/trunk/contrib/jcr-server/webapp/src/java/org/apache/jackrabbit/j2ee/SimpleWebdavServlet.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-server/webapp/src/java/org/apache/jackrabbit/j2ee/SimpleWebdavServlet.java?rev=382316&r1=382315&r2=382316&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-server/webapp/src/java/org/apache/jackrabbit/j2ee/SimpleWebdavServlet.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-server/webapp/src/java/org/apache/jackrabbit/j2ee/SimpleWebdavServlet.java
Thu Mar  2 00:00:47 2006
@@ -19,14 +19,11 @@
 import org.apache.jackrabbit.server.BasicCredentialsProvider;
 import org.apache.jackrabbit.server.SessionProvider;
 import org.apache.jackrabbit.server.SessionProviderImpl;
-import org.apache.jackrabbit.webdav.DavException;
 import org.apache.jackrabbit.webdav.DavLocatorFactory;
-import org.apache.jackrabbit.webdav.DavMethods;
 import org.apache.jackrabbit.webdav.DavResource;
 import org.apache.jackrabbit.webdav.DavResourceFactory;
 import org.apache.jackrabbit.webdav.DavSessionProvider;
 import org.apache.jackrabbit.webdav.WebdavRequest;
-import org.apache.jackrabbit.webdav.WebdavResponse;
 import org.apache.jackrabbit.webdav.jcr.DavLocatorFactoryImpl;
 import org.apache.jackrabbit.webdav.lock.LockManager;
 import org.apache.jackrabbit.webdav.lock.SimpleLockManager;
@@ -38,7 +35,6 @@
 import javax.jcr.Repository;
 import javax.servlet.ServletContext;
 import javax.servlet.ServletException;
-import java.io.IOException;
 import java.net.MalformedURLException;
 
 /**
@@ -166,70 +162,6 @@
                 log.debug("Unable to build resource filter provider.");
             }
         }
-    }
-
-    /**
-     * Executes the respective method in the given webdav context.
-     * The method is overridden since not all webdav methods should be
-     * supported by this servlet.
-     *
-     * @param request
-     * @param response
-     * @param method
-     * @param resource
-     * @return
-     * @throws ServletException
-     * @throws IOException
-     * @throws org.apache.jackrabbit.webdav.DavException
-     */
-    protected boolean execute(WebdavRequest request, WebdavResponse response,
-                              int method, DavResource resource)
-            throws ServletException, IOException, DavException {
-        switch (method) {
-            case DavMethods.DAV_HEAD:
-                doHead(request, response, resource);
-                break;
-            case DavMethods.DAV_GET:
-                doGet(request, response, resource);
-                break;
-            case DavMethods.DAV_OPTIONS:
-                doOptions(request, response, resource);
-                break;
-            case DavMethods.DAV_PROPFIND:
-                doPropFind(request, response, resource);
-                break;
-            case DavMethods.DAV_PROPPATCH:
-                doPropPatch(request, response, resource);
-                break;
-            case DavMethods.DAV_PUT:
-                doPut(request, response, resource);
-                break;
-            case DavMethods.DAV_POST:
-                doPost(request, response, resource);
-                break;
-            case DavMethods.DAV_DELETE:
-                doDelete(request, response, resource);
-                break;
-            case DavMethods.DAV_COPY:
-                doCopy(request, response, resource);
-                break;
-            case DavMethods.DAV_MOVE:
-                doMove(request, response, resource);
-                break;
-            case DavMethods.DAV_MKCOL:
-                doMkCol(request, response, resource);
-                break;
-            case DavMethods.DAV_LOCK:
-                doLock(request, response, resource);
-                break;
-            case DavMethods.DAV_UNLOCK:
-                doUnlock(request, response, resource);
-                break;
-            default:
-                // any other method
-                return false;
-        }
-        return true;
     }
 
     /**



Mime
View raw message