You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ol...@apache.org on 2004/04/09 14:03:24 UTC
cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpClient.java
olegk 2004/04/09 05:03:24
Modified: httpclient/src/java/org/apache/commons/httpclient
HttpClient.java
Log:
PR #28303 (HttpClient#getHost & HttpClient#getPort methods are misleading)
HttpClient#getHost & HttpClient#getPort methods deprecated
Contributed by Oleg Kalnichevski
Reviewed by Michael Becke
Revision Changes Path
1.93 +12 -10 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java
Index: HttpClient.java
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -r1.92 -r1.93
--- HttpClient.java 22 Feb 2004 18:08:45 -0000 1.92
+++ HttpClient.java 9 Apr 2004 12:03:24 -0000 1.93
@@ -442,20 +442,22 @@
}
/**
- * Returns the host that the client is accessing.
+ * Returns the default host.
*
- * @return The host that the client is accessing, or <code>null</code> if
- * the session has not been started via startSession.
+ * @return The default host.
+ *
+ * @deprecated use #getHostConfiguration()
*/
public String getHost() {
return hostConfiguration.getHost();
}
/**
- * Returns the port that the client is accessing.
+ * Returns the default port.
*
- * @return The port that the client is accessing, or -1 if the session
- * has not been started via startSession().
+ * @return The default port.
+ *
+ * @deprecated use #getHostConfiguration()
*/
public int getPort() {
return hostConfiguration.getPort();
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org