Compiling Slide against the latest (CVS) HttpClient has two compilation errors. 
HttpConnection.getProtocol doesn't return a String anymore. The scheme is retrieved by 
calling the getScheme() method on the Protocol object that is returned.

------
Rob Owen
SAS Institute Inc.
email: [EMAIL PROTECTED]

Index: CopyMethod.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/CopyMethod.java,v

retrieving revision 1.18
diff -u -r1.18 CopyMethod.java
--- CopyMethod.java     16 Dec 2002 15:17:28 -0000      1.18
+++ CopyMethod.java     10 Feb 2003 16:23:42 -0000
@@ -228,7 +228,7 @@
         super.addRequestHeaders(state, conn);
 
         String absoluteDestination =
-            conn.getProtocol() + "://" + conn.getHost() + 
URLUtil.URLEncode(destination, "utf-8");  //for now jpl
+            conn.getProtocol().getScheme() + "://" + conn.getHost() + 
+URLUtil.URLEncode(destination, "utf-8");  //for now jpl
         super.setRequestHeader("Destination", absoluteDestination);
 
         if (!isOverwrite())
Index: MoveMethod.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/MoveMethod.java,v

retrieving revision 1.18
diff -u -r1.18 MoveMethod.java
--- MoveMethod.java     16 Dec 2002 15:17:28 -0000      1.18
+++ MoveMethod.java     10 Feb 2003 16:23:42 -0000
@@ -229,7 +229,7 @@
         super.addRequestHeaders(state, conn);
 
         String absoluteDestination =
-            conn.getProtocol() + "://" + conn.getHost() + 
URLUtil.URLEncode(destination, "utf-8");  //for now jpl
+            conn.getProtocol().getScheme() + "://" + conn.getHost() + 
+URLUtil.URLEncode(destination, "utf-8");  //for now jpl
         super.setRequestHeader("Destination", absoluteDestination);
 
         if (!isOverwrite())
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to