jericho     01/03/13 02:25:41

  Modified:    src/webdav/client/src/org/apache/webdav/cmd Slide.java
  Log:
  - Let us have the toggle function of URL encoding flag.
  
  Revision  Changes    Path
  1.10      +22 -3     
jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/Slide.java
  
  Index: Slide.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/Slide.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Slide.java        2001/03/13 01:53:58     1.9
  +++ Slide.java        2001/03/13 10:25:39     1.10
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/Slide.java,v 1.9 
2001/03/13 01:53:58 jericho Exp $
  - * $Revision: 1.9 $
  - * $Date: 2001/03/13 01:53:58 $
  + * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/Slide.java,v 1.10 
2001/03/13 10:25:39 jericho Exp $
  + * $Revision: 1.10 $
  + * $Date: 2001/03/13 10:25:39 $
    *
    * ====================================================================
    *
  @@ -1050,6 +1050,23 @@
                                   e.getMessage());
                           }
                       }
  +                } else
  +                if (todo.equalsIgnoreCase("set")) {
  +                    if (params.size() == 2) {
  +                        String onOrOff= (String) params.pop();
  +                        String encoding = (String) params.pop();
  +                        if (encoding.equalsIgnoreCase("urlencode")) {
  +                            if (onOrOff.equalsIgnoreCase("on")) {
  +                                webdavResource.setEncodeURLs(true);
  +                                System.out.println
  +                                    ("URL encoding flag is on.");
  +                            } else {
  +                                webdavResource.setEncodeURLs(false);
  +                                System.out.println
  +                                    ("URL encoding flag is off.");
  +                            }
  +                        }
  +                     }
                   }
               } while (true);
   
  @@ -1262,6 +1279,8 @@
               "Print value of specified property");
           System.out.println("  propput path property value   " +
               "Set property with given value");
  +        System.out.println("  set urlencode [on|off]        " +
  +            "Set URL encoding flag, default: on");
           System.out.println("Aliases: help=?, ls=dir, pwc=pwd, cc=cd, " +
               "copy=cp, move=mv, delete=del=rm,\n         mkcol=mkdir, " +
               "lls=ldir, exit=quit \n");
  
  
  

Reply via email to