juergen     02/05/07 06:05:44

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        WebdavMethod.java
  Log:
  Added getPreconditionViolationError() signature that takes Namespace as additional 
parameter.
  (ralf)
  
  Revision  Changes    Path
  1.54      +18 -5     
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/WebdavMethod.java
  
  Index: WebdavMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/WebdavMethod.java,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- WebdavMethod.java 2 May 2002 19:50:08 -0000       1.53
  +++ WebdavMethod.java 7 May 2002 13:05:44 -0000       1.54
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/WebdavMethod.java,v
 1.53 2002/05/02 19:50:08 pnever Exp $
  - * $Revision: 1.53 $
  - * $Date: 2002/05/02 19:50:08 $
  + * $Header: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/WebdavMethod.java,v
 1.54 2002/05/07 13:05:44 juergen Exp $
  + * $Revision: 1.54 $
  + * $Date: 2002/05/07 13:05:44 $
    *
    * ====================================================================
    *
  @@ -583,11 +583,24 @@
        * @return the <error> for the given precondition violation.
        */
       protected org.jdom.Element getPreconditionViolationError(ViolatedPrecondition 
violatedPrecondition) {
  +        return getPreconditionViolationError(violatedPrecondition,
  +                                             
org.jdom.Namespace.getNamespace(WebdavConstants.DEFAULT_NAMESPACE));
  +    }
  +    
  +    /**
  +     * Generate <error> for the given precondition violation.
  +     *
  +     * @param     violatedPrecondition  the ViolatedPrecondition that describes
  +     *                                  the violated precondition.
  +     *
  +     * @return the <error> for the given precondition violation.
  +     */
  +    protected org.jdom.Element getPreconditionViolationError(ViolatedPrecondition 
violatedPrecondition, org.jdom.Namespace namespace) {
           
           org.jdom.Element error = new org.jdom.Element(WebdavConstants.E_ERROR,
  -                                                      
org.jdom.Namespace.getNamespace(WebdavConstants.DEFAULT_NAMESPACE));
  +                                                     namespace);
           org.jdom.Element violatedPreconditionElement = new 
org.jdom.Element(violatedPrecondition.getPrecondition(),
  -                                                   
org.jdom.Namespace.getNamespace(WebdavConstants.DEFAULT_NAMESPACE));
  +                                                                            
namespace);
           error.addContent(violatedPreconditionElement);
           return error;
       }
  
  
  

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

Reply via email to