commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwaldh...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpClient.java
Date Wed, 01 May 2002 07:40:20 GMT
rwaldhoff    02/05/01 00:40:20

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpClient.java
  Log:
  add startSession(host,port,proxyHost,proxyPort,secure) method, as requested in http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7643
  
  Revision  Changes    Path
  1.46      +25 -6     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.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- HttpClient.java	17 Feb 2002 11:47:52 -0000	1.45
  +++ HttpClient.java	1 May 2002 07:40:20 -0000	1.46
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java,v
1.45 2002/02/17 11:47:52 dion Exp $
  - * $Revision: 1.45 $
  - * $Date: 2002/02/17 11:47:52 $
  + * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java,v
1.46 2002/05/01 07:40:20 rwaldhoff Exp $
  + * $Revision: 1.46 $
  + * $Date: 2002/05/01 07:40:20 $
    * ====================================================================
    *
    * The Apache Software License, Version 1.1
  @@ -80,7 +80,7 @@
    * @author <a href="mailto:rwaldhoff@apache.org">Rodney Waldhoff</a>
    * @author Sean C. Sullivan
    * @author <a href="mailto:dion@apache.org">dIon Gillard</a>
  - * @version $Revision: 1.45 $ $Date: 2002/02/17 11:47:52 $
  + * @version $Revision: 1.46 $ $Date: 2002/05/01 07:40:20 $
    */
   public class HttpClient {
   
  @@ -255,7 +255,6 @@
           startSession(url);
       }
   
  -
       /**
        * Start an HTTP session with the server specified
        * by the given <i>host</i> and <i>port</i>
  @@ -270,7 +269,27 @@
        */
       public void startSession(String host, int port,
                                String proxyhost, int proxyport) {
  -        connection = new HttpConnection(proxyhost,proxyport,host,port,false);
  +        startSession(host,port,proxyhost,proxyport,false);
  +    }
  +
  +
  +    /**
  +     * Start an HTTP session with the server specified
  +     * by the given <i>host</i> and <i>port</i>
  +     * via the given <i>proxyhost</i> and <i>proxyport</i>.
  +     * @param host the host to connect to
  +     * @param port the port to connect to
  +     * @param proxyhost the proxy host to connect via
  +     * @param proxyport the proxy port to connect via
  +     * @param secure whether or not to connect using HTTPS
  +     *
  +     * @see #endSession()
  +     *
  +     */
  +    public void startSession(String host, int port,
  +                             String proxyhost, int proxyport,
  +                             boolean secure) {
  +        connection = new HttpConnection(proxyhost,proxyport,host,port,secure);
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message