[jboss-user] [JBoss Seam] - Re: Pages.encodeScheme(), HTTPS, and context root '/'

flashguru do-not-reply at jboss.com
Thu Mar 8 08:46:53 EST 2007


Thank you so much for a quick response.

There is, however, one thing that is still a mystery to me. In the new code:
URL serverUrl = new URL(requestUrl);
  | StringBuilder sb = new StringBuilder();
  | sb.append(scheme);
  | sb.append("://");
  | sb.append(serverUrl.getHost());
  | if (serverUrl.getPort() != -1)
  | {
  |   sb.append(":");
  |   sb.append(serverUrl.getPort());
  | }
  | 
When you are switching from http to https, and you are using ports say 8080,8483, would not the serverUrl.getPort() in the above code return 8080 while what you want is 8483?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026240#4026240

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026240



More information about the jboss-user mailing list