vmassol 2002/12/31 03:42:37
Modified: framework/src/java/share/org/apache/cactus/client
HttpClientConnectionHelper.java
Log:
First step towards supporting HTTPS.
Note: I haven't verified this does not introduce any regression as I cannot build
cactus ATM (some checkstyle stuff is preventing me from building Cactus right now)
Revision Changes Path
1.6 +3 -2
jakarta-cactus/framework/src/java/share/org/apache/cactus/client/HttpClientConnectionHelper.java
Index: HttpClientConnectionHelper.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/framework/src/java/share/org/apache/cactus/client/HttpClientConnectionHelper.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- HttpClientConnectionHelper.java 17 Oct 2002 18:31:45 -0000 1.5
+++ HttpClientConnectionHelper.java 31 Dec 2002 11:42:37 -0000 1.6
@@ -167,7 +167,8 @@
// Open the connection and get the result
HttpClient client = new HttpClient();
- client.startSession(url.getHost(), url.getPort());
+ client.startSession(url.getHost(), url.getPort(),
+ url.getProtocol().equalsIgnoreCase("HTTPS"));
client.executeMethod(this.method);
// Wrap the HttpClient method in a java.net.HttpURLConnection object
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>