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/03/05 11:21:02 UTC
cvs commit: jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor TProcessors.java
juergen 02/03/05 02:21:02
Modified: testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor
TProcessors.java
Log:
added the possibility to specify a different url encoding (default is UTF-8).
Revision Changes Path
1.14 +15 -4 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.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- TProcessors.java 28 Feb 2002 17:23:04 -0000 1.13
+++ TProcessors.java 5 Mar 2002 10:21:01 -0000 1.14
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v 1.13 2002/02/28 17:23:04 juergen Exp $
- * $Revision: 1.13 $
- * $Date: 2002/02/28 17:23:04 $
+ * $Header: /home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v 1.14 2002/03/05 10:21:01 juergen Exp $
+ * $Revision: 1.14 $
+ * $Date: 2002/03/05 10:21:01 $
*
* ====================================================================
*
@@ -84,7 +84,7 @@
* Main class to performe a test case and check and report the results
*
* @author Software AG
- * @version $Revision: 1.13 $
+ * @version $Revision: 1.14 $
*/
public class TProcessors {
@@ -110,6 +110,10 @@
String defaultPassword;
+ /** url encoding */
+ String defaultUrlEncoding;
+
+
/** hold all the variable defined **/
KnownVariablesHashtable knownVariables = new KnownVariablesHashtable();
@@ -140,6 +144,11 @@
port = System.getProperty("xdav.port");
defaultUser = System.getProperty("xdav.user");
defaultPassword = System.getProperty("xdav.password");
+ defaultUrlEncoding = System.getProperty("xdav.urlencoding");
+
+ if (defaultUrlEncoding == null) {
+ defaultUrlEncoding = "UTF-8";
+ }
if (defaultUser == null) {
defaultUser = "guest";
}
@@ -489,6 +498,8 @@
HttpClient client = new HttpClient();
WebdavState state = new WebdavState();
state.setAuthenticateToken("Basic realm=xxx"); // currently only basic is supported
+ state.setURLDecodingCharset(defaultUrlEncoding);
+ state.setURLEncodingCharset(defaultUrlEncoding);
client.startSession((String)startUp.get("host"),
((Integer)startUp.get("port") ).intValue(),
new Credentials(user, password));
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>