commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpClient.java
Date Fri, 09 Apr 2004 12:03:24 GMT
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


Mime
View raw message