You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by re...@apache.org on 2001/05/03 01:15:07 UTC
cvs commit: jakarta-slide/src/webdav/client/src/org/apache/webdav/lib WebdavSession.java
remm 01/05/02 16:15:06
Modified: src/webdav/client/src/org/apache/webdav/lib
WebdavSession.java
Log:
- The behavior of the HTTP Client was confusing when using the constructor
new HttpClient(URL). Replace the constuctor with new HttpClient() + a call
to startSession(URL).
Revision Changes Path
1.4 +5 -4 jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavSession.java
Index: WebdavSession.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavSession.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- WebdavSession.java 2001/05/02 08:11:25 1.3
+++ WebdavSession.java 2001/05/02 23:15:01 1.4
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavSession.java,v 1.3 2001/05/02 08:11:25 jericho Exp $
- * $Revision: 1.3 $
- * $Date: 2001/05/02 08:11:25 $
+ * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavSession.java,v 1.4 2001/05/02 23:15:01 remm Exp $
+ * $Revision: 1.4 $
+ * $Date: 2001/05/02 23:15:01 $
*
* ====================================================================
*
@@ -133,7 +133,8 @@
clientInfo.addElement(authority);
}
- HttpClient client = new HttpClient(httpURL.toURL());
+ HttpClient client = new HttpClient();
+ client.startSession(httpURL.toURL());
String userName = httpURL.getUserName();
if (userName != null && userName.length() > 0) {
String password = httpURL.getPassword();