[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/http/ssl ...
Tom Elrod
tom.elrod at jboss.com
Sat Jul 15 00:40:10 EDT 2006
User: telrod
Date: 06/07/15 00:40:10
Modified: src/main/org/jboss/remoting/transport/http/ssl
HTTPSClientInvoker.java
Log:
JBREM-543 & JBREM-542 & JBREM-539 - fixed servlet invoker and added sslservlet invoker.
Revision Changes Path
1.11 +17 -0 JBossRemoting/src/main/org/jboss/remoting/transport/http/ssl/HTTPSClientInvoker.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: HTTPSClientInvoker.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/http/ssl/HTTPSClientInvoker.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- HTTPSClientInvoker.java 22 Jun 2006 21:08:07 -0000 1.10
+++ HTTPSClientInvoker.java 15 Jul 2006 04:40:10 -0000 1.11
@@ -59,6 +59,23 @@
super(locator, configuration);
}
+ protected String validateURL(String url)
+ {
+ String validatedUrl = url;
+
+ if (validatedUrl.startsWith("servlet"))
+ {
+ // servlet:// is a valid protocol, but only in the remoting world, so need to convert to http
+ validatedUrl = "http" + validatedUrl.substring("servlet".length());
+ }
+ else if(validatedUrl.startsWith("sslservlet"))
+ {
+ // sslservlet:// is a valid protocol, but only in the remoting world, so need to convert to https
+ validatedUrl = "https" + validatedUrl.substring("sslservlet".length());
+ }
+ return validatedUrl;
+ }
+
/**
* Checks to see if org.jboss.security.ignoreHttpHost property is set to true, and if it
More information about the jboss-cvs-commits
mailing list