juergen     02/05/22 04:28:51

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        PropPatchMethod.java
  Log:
  Added the namespace prefix to the parameters of the createRequestedProperty() method.
  Use this prefix to register the prefix/URI at the NamespaceCache.
  (ralf)
  
  Revision  Changes    Path
  1.47      +10 -6     
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java
  
  Index: PropPatchMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- PropPatchMethod.java      22 May 2002 07:37:46 -0000      1.46
  +++ PropPatchMethod.java      22 May 2002 11:28:51 -0000      1.47
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java,v
 1.46 2002/05/22 07:37:46 juergen Exp $
  - * $Revision: 1.46 $
  - * $Date: 2002/05/22 07:37:46 $
  + * $Header: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java,v
 1.47 2002/05/22 11:28:51 juergen Exp $
  + * $Revision: 1.47 $
  + * $Date: 2002/05/22 11:28:51 $
    *
    * ====================================================================
    *
  @@ -648,19 +648,23 @@
            * implementations of RequestedProperty.
            *
            * @param      name       the name of the propery.
  -         * @param      namespace  the namespace of the propery.
  +     * @param      namespacePrefix  the namespace prefix of the propery.
  +     * @param      namespaceUri     the namespace URI of the propery.
            * @param      text       the text of the propery element.
            * @param      children   the children of the propery element.
            *
            * @return     the created RequestedProperty.
            */
  -        protected RequestedProperty createRequestedProperty(String name, String 
namespace, String text, List children) {
  +    protected RequestedProperty createRequestedProperty(String name, String 
namespacePrefix, String namespaceUri, String text, List children) {
               
               String value = text;
               if (children.size() > 0) {
                   value = new XMLValue(children).toString();
               }
  -            return new PropPatchProperty(name, namespace, value);
  +            // register prefix/URI at NamespaceCache
  +            NamespaceCache.getNamespace(namespacePrefix, namespaceUri);
  +            
  +            return new PropPatchProperty(name, namespaceUri, value);
           }
           
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to