jericho     01/05/17 23:47:31

  Modified:    src/webdav/client/src/org/apache/webdav/lib/methods
                        LockMethod.java
  Log:
  - Update javadoc messages.
  - Support the supportedlock property.
     It's no longer interface.
  
  Revision  Changes    Path
  1.20      +9 -5      
jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/LockMethod.java
  
  Index: LockMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/LockMethod.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- LockMethod.java   2001/05/14 12:20:27     1.19
  +++ LockMethod.java   2001/05/18 06:47:31     1.20
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/LockMethod.java,v
 1.19 2001/05/14 12:20:27 juergen Exp $
  - * $Revision: 1.19 $
  - * $Date: 2001/05/14 12:20:27 $
  + * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/LockMethod.java,v
 1.20 2001/05/18 06:47:31 jericho Exp $
  + * $Revision: 1.20 $
  + * $Date: 2001/05/18 06:47:31 $
    *
    * ====================================================================
    *
  @@ -273,7 +273,10 @@
           else if(headerName.equalsIgnoreCase("Timeout")){
               if (headerValue.startsWith("Second-"))
                   headerValue = headerValue.substring("Second-".length());
  -            setTimeout(Long.parseLong(headerValue));
  +            try {
  +                setTimeout(Long.parseLong(headerValue));
  +            } catch (NumberFormatException e) {
  +            }
           }
           else{
               super.setHeader(headerName, headerValue);
  @@ -290,7 +293,8 @@
       public void setDepth(int depth) {
           checkNotUsed();
           if (depth != DEPTH_0 && depth != DEPTH_INFINITY) {
  -            throw new IllegalArgumentException("invalid depth value for lock method 
" + depth);
  +            throw new IllegalArgumentException
  +            ("invalid depth value for lock method " + depth);
           }
           this.depth = depth;
       }
  
  
  

Reply via email to