You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by ms...@apache.org on 2002/04/02 06:51:21 UTC

cvs commit: jakarta-slide/src/share/org/apache/slide/common RequestedPropertiesImpl.java

msmith      02/04/01 20:51:21

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        PropFindMethod.java
               src/share/org/apache/slide/common
                        RequestedPropertiesImpl.java
  Log:
  A propfind with zero content-length is, by the spec, to be treated as
  an allprop request. Change logic in PropFindMethod to do this (and
  add a method to set isAllProp in RequestedPropertiesImpl in order to
  do so).
  
  MS webfolders works again against current cvs.
  
  Revision  Changes    Path
  1.56      +5 -4      jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropFindMethod.java
  
  Index: PropFindMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropFindMethod.java,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- PropFindMethod.java	28 Mar 2002 06:12:12 -0000	1.55
  +++ PropFindMethod.java	2 Apr 2002 04:51:21 -0000	1.56
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropFindMethod.java,v 1.55 2002/03/28 06:12:12 jericho Exp $
  - * $Revision: 1.55 $
  - * $Date: 2002/03/28 06:12:12 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropFindMethod.java,v 1.56 2002/04/02 04:51:21 msmith Exp $
  + * $Revision: 1.56 $
  + * $Date: 2002/04/02 04:51:21 $
    *
    * ====================================================================
    *
  @@ -212,7 +212,8 @@
           
           if (req.getContentLength() == 0) {
               requestedProperties = new RequestedPropertiesImpl();
  -            propFindType = FIND_BY_PROPERTY;
  +            requestedProperties.setIsAllProp(true);
  +            propFindType = FIND_ALL_PROP;
           }
           else {
               
  
  
  
  1.3       +12 -5     jakarta-slide/src/share/org/apache/slide/common/RequestedPropertiesImpl.java
  
  Index: RequestedPropertiesImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/RequestedPropertiesImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RequestedPropertiesImpl.java	28 Mar 2002 06:23:12 -0000	1.2
  +++ RequestedPropertiesImpl.java	2 Apr 2002 04:51:21 -0000	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/RequestedPropertiesImpl.java,v 1.2 2002/03/28 06:23:12 jericho Exp $
  - * $Revision: 1.2 $
  - * $Date: 2002/03/28 06:23:12 $
  + * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/RequestedPropertiesImpl.java,v 1.3 2002/04/02 04:51:21 msmith Exp $
  + * $Revision: 1.3 $
  + * $Date: 2002/04/02 04:51:21 $
    *
    * ====================================================================
    *
  @@ -78,7 +78,7 @@
    * Holds one property as part of the SELECT element.
    *
    * @author <a href="mailto:martin.wallmer@softwareag.com">Martin Wallmer</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   public class RequestedPropertiesImpl implements RequestedProperties {
       
  @@ -89,7 +89,7 @@
   	 * Default constructor
   	 */
       public RequestedPropertiesImpl() {}
  -    
  +
       /**
   	 * Constructs a List of RequestedProperty from a <DAV:prop> element
   	 * or <DAV:allprop>
  @@ -154,6 +154,13 @@
   	public boolean isAllProp()	{
   		return isAllProp;
   	}
  +
  +    /**
  +     * Set the isAllProp member.
  +     */
  +    public void setIsAllProp(boolean isAllProp) {
  +        this.isAllProp = isAllProp;
  +    }
   	
   	/**
   	 * Checks, if the property identified by name and namespace, is requested
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>