From 9f8f35c063bcbe7a71676bf2e3c1c9d6f11fa55f Mon Sep 17 00:00:00 2001 From: Jan Vonka Date: Fri, 9 Jan 2009 13:24:14 +0000 Subject: [PATCH] Merged DEV/JASONH to HEAD 12241: WebDAV - Make execute() not final, so it can be overridden 12243: WebDAV - PropFindMethod - change private to protected 12629: WebDAV - fix SPP (follow-on from r12243) (note: resolved from .../vti/method/VtiPropfindMethod to .../vti/web/fp/PropfindMethod) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12656 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/repo/webdav/PropFindMethod.java | 22 +++++++++---------- .../alfresco/repo/webdav/WebDAVMethod.java | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/source/java/org/alfresco/repo/webdav/PropFindMethod.java b/source/java/org/alfresco/repo/webdav/PropFindMethod.java index 996791389a..8b30ade538 100644 --- a/source/java/org/alfresco/repo/webdav/PropFindMethod.java +++ b/source/java/org/alfresco/repo/webdav/PropFindMethod.java @@ -64,19 +64,19 @@ import org.xml.sax.helpers.AttributesImpl; public class PropFindMethod extends WebDAVMethod { // Request types - private static final int GET_ALL_PROPS = 0; - private static final int GET_NAMED_PROPS = 1; - private static final int FIND_PROPS = 2; + protected static final int GET_ALL_PROPS = 0; + protected static final int GET_NAMED_PROPS = 1; + protected static final int FIND_PROPS = 2; // Find depth and request type private int m_depth = WebDAV.DEPTH_INFINITY; - private int m_mode = GET_ALL_PROPS; + protected int m_mode = GET_ALL_PROPS; // Requested properties - private ArrayList m_properties = null; + protected ArrayList m_properties = null; // Available namespaces list - private HashMap m_namespaces = null; + protected HashMap m_namespaces = null; /** * Default constructor @@ -390,7 +390,7 @@ public class PropFindMethod extends WebDAVMethod * @param node NodeRef * @param path String */ - private void generateResponseForNode(XMLWriter xml, FileInfo nodeInfo, String path) throws Exception + protected void generateResponseForNode(XMLWriter xml, FileInfo nodeInfo, String path) throws Exception { NodeRef nodeRef = nodeInfo.getNodeRef(); boolean isFolder = nodeInfo.isFolder(); @@ -683,7 +683,7 @@ public class PropFindMethod extends WebDAVMethod * @param node NodeRef * @param isDir boolean */ - private void generateAllPropertiesResponse(XMLWriter xml, NodeRef node, boolean isDir) throws Exception + protected void generateAllPropertiesResponse(XMLWriter xml, NodeRef node, boolean isDir) throws Exception { // Get the properties for the node @@ -834,7 +834,7 @@ public class PropFindMethod extends WebDAVMethod * @param node NodeRef * @param isDir boolean */ - private void generateFindPropertiesResponse(XMLWriter xml, NodeRef node, boolean isDir) + protected void generateFindPropertiesResponse(XMLWriter xml, NodeRef node, boolean isDir) { try { @@ -892,7 +892,7 @@ public class PropFindMethod extends WebDAVMethod * @param node NodeRef * @param isDir boolean */ - private void generateLockDiscoveryResponse(XMLWriter xml, NodeRef node, boolean isDir) throws Exception + protected void generateLockDiscoveryResponse(XMLWriter xml, NodeRef node, boolean isDir) throws Exception { // Get the lock status for the node @@ -910,7 +910,7 @@ public class PropFindMethod extends WebDAVMethod * * @param xml XMLWriter */ - private void writeLockTypes(XMLWriter xml) + protected void writeLockTypes(XMLWriter xml) { try { diff --git a/source/java/org/alfresco/repo/webdav/WebDAVMethod.java b/source/java/org/alfresco/repo/webdav/WebDAVMethod.java index d2c83721c6..c2da4257e8 100644 --- a/source/java/org/alfresco/repo/webdav/WebDAVMethod.java +++ b/source/java/org/alfresco/repo/webdav/WebDAVMethod.java @@ -129,7 +129,7 @@ public abstract class WebDAVMethod * Executes the method, wrapping the call to {@link #executeImpl()} in an appropriate transaction * and handling the error conditions. */ - public final void execute() throws WebDAVServerException + public void execute() throws WebDAVServerException { // Parse the HTTP headers parseRequestHeaders();