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 ProxyClient.java
Date Mon, 20 Dec 2004 11:39:04 GMT
olegk       2004/12/20 03:39:04

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        ProxyClient.java
  Log:
  Removed references to deprecated methods
  
  Revision  Changes    Path
  1.5       +6 -6      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/ProxyClient.java
  
  Index: ProxyClient.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/ProxyClient.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ProxyClient.java	4 May 2004 21:24:51 -0000	1.4
  +++ ProxyClient.java	20 Dec 2004 11:39:04 -0000	1.5
  @@ -179,10 +179,10 @@
        */
       public ConnectResponse connect() throws IOException, HttpException {
           
  -        if (!getHostConfiguration().isProxySet()) {
  +        if (getHostConfiguration().getProxyHost() == null) {
               throw new IllegalStateException("proxy host must be configured");
           }
  -        if (!getHostConfiguration().isHostSet()) {
  +        if (getHostConfiguration().getHost() == null) {
               throw new IllegalStateException("destination host must be configured");
           }
           
  
  
  

---------------------------------------------------------------------
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