olegk 2004/04/09 05:04:12
Modified: httpclient/src/java/org/apache/commons/httpclient Tag:
HTTPCLIENT_2_0_BRANCH 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
No revision
No revision
1.76.2.6 +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.76.2.5
retrieving revision 1.76.2.6
diff -u -r1.76.2.5 -r1.76.2.6
--- HttpClient.java 8 Mar 2004 16:33:38 -0000 1.76.2.5
+++ HttpClient.java 9 Apr 2004 12:04:12 -0000 1.76.2.6
@@ -653,20 +653,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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]