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 ju...@apache.org on 2002/02/06 17:53:27 UTC
cvs commit: jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor TProcessors.java
juergen 02/02/06 08:53:27
Modified: testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor
TProcessors.java
Log:
set basic authentification as the default for sending uid/pwd (to supress not necessary non-authenticated webdav commands)
Revision Changes Path
1.6 +10 -7 jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java
Index: TProcessors.java
===================================================================
RCS file: /home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- TProcessors.java 31 Jan 2002 12:02:48 -0000 1.5
+++ TProcessors.java 6 Feb 2002 16:53:27 -0000 1.6
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v 1.5 2002/01/31 12:02:48 juergen Exp $
- * $Revision: 1.5 $
- * $Date: 2002/01/31 12:02:48 $
+ * $Header: /home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v 1.6 2002/02/06 16:53:27 juergen Exp $
+ * $Revision: 1.6 $
+ * $Date: 2002/02/06 16:53:27 $
*
* ====================================================================
*
@@ -83,7 +83,7 @@
* Main class to performe a test case and check and report the results
*
* @author Software AG
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public class TProcessors {
@@ -486,9 +486,12 @@
String user = replaceKnownVariable(elt.getChild("user"), defaultUser);
String password = replaceKnownVariable(elt.getChild("password"), defaultPassword);
HttpClient client = new HttpClient();
- client.startSession((String)startUp.get("host"), ((Integer)startUp.get("port") ).intValue());
- client.setCredentials(new Credentials(user, password));
- client.setState(new WebdavState()); // neede in the next version of Slide !!!! [jpl]
+ WebdavState state = new WebdavState();
+ state.setAuthenticateToken("Basic realm=xxx"); // currently only basic is supported
+ client.startSession((String)startUp.get("host"),
+ ((Integer)startUp.get("port") ).intValue(),
+ new Credentials(user, password));
+ client.setState(state);
client.setDebug(0);
// System.out.println("############### user " + user);
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>