dion 2002/07/11 18:51:41
Modified: httpclient/src/java/org/apache/commons/httpclient
HttpMethodBase.java
Log:
More debug info on redirect url creation - needs to be refactored into another method
Revision Changes Path
1.29 +15 -4 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java
Index: HttpMethodBase.java
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- HttpMethodBase.java 16 Apr 2002 14:30:42 -0000 1.28
+++ HttpMethodBase.java 12 Jul 2002 01:51:41 -0000 1.29
@@ -579,9 +579,20 @@
if(-1 == port) {
port = connection.isSecure() ? 443 : 80;
}
+ if (log.isDebugEnabled()) {
+ log.debug("building current URL as " +
+ "protocol=" + protocol +
+ ", host=" + connection.getHost() +
+ ", port=" + port +
+ ", port=" + getPath()
+ );
+ }
URL currentUrl = new URL(protocol,connection.getHost(),port,getPath());
url = new URL(currentUrl, location.getValue());
} else {
+ if (log.isDebugEnabled()) {
+ log.debug("building url from :" + location.getValue());
+ }
url = new URL(location.getValue());
}
} catch(MalformedURLException e) {
--
To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>
|