axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jayachan...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/transport/http CommonsHTTPSender.java
Date Mon, 08 Aug 2005 14:14:33 GMT
jayachandra    2005/08/08 07:14:33

  Modified:    java/src/org/apache/axis/transport/http
                        CommonsHTTPSender.java
  Log:
  Keeping in view backward compatibility with JDK1.3, am modifying the patch
  for AXIS-2044 slightly. getDefaultPort() isn't available with 1.3, hence this
  change
  
  Revision  Changes    Path
  1.42      +5 -1      ws-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java
  
  Index: CommonsHTTPSender.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- CommonsHTTPSender.java	8 Aug 2005 10:28:34 -0000	1.41
  +++ CommonsHTTPSender.java	8 Aug 2005 14:14:33 -0000	1.42
  @@ -423,7 +423,11 @@
           HostConfiguration config = new HostConfiguration();
           
           if (port == -1) {
  -        	port = targetURL.getDefaultPort();   // 80 for http, 443 for https
  +        	if(targetURL.getProtocol().equalsIgnoreCase("https")) {
  +        		port = 443;		// default port for https being 443
  +        	} else { // it must be http
  +        		port = 80;		// default port for http being 80
  +        	}
           }
           
           if(hostInNonProxyList){
  
  
  

Mime
View raw message