commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marcs...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMultiClient.java
Date Thu, 09 May 2002 19:30:22 GMT
marcsaeg    02/05/09 12:30:22

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMultiClient.java
  Log:
  Added methods to set proxy host and port via HttpMultiClient.
  
  Revision  Changes    Path
  1.4       +50 -3     jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMultiClient.java
  
  Index: HttpMultiClient.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMultiClient.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- HttpMultiClient.java	12 Apr 2002 21:15:17 -0000	1.3
  +++ HttpMultiClient.java	9 May 2002 19:30:22 -0000	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMultiClient.java,v
1.3 2002/04/12 21:15:17 marcsaeg Exp $
  - * $Revision: 1.3 $
  - * $Date: 2002/04/12 21:15:17 $
  + * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMultiClient.java,v
1.4 2002/05/09 19:30:22 marcsaeg Exp $
  + * $Revision: 1.4 $
  + * $Date: 2002/05/09 19:30:22 $
    * ====================================================================
    *
    * The Apache Software License, Version 1.1
  @@ -205,6 +205,53 @@
       public int getRequestTimeout()
       {
           return timeoutRequest;
  +    }
  +
  +    /**
  +     * Sets the hostname for the HTTP proxy server to use for all
  +     * requests.
  +     *
  +     * @param host The hostname of the HTTP proxy server
  +     * @see HttpConnectionManager#setProxyHost
  +     */
  +    public void setProxyHost(String host)
  +    {
  +        mgr.setProxyHost(host);
  +    }
  +
  +    /**
  +     * Returns the hostname for the HTTP proxy server in use for
  +     * all requests.
  +     *
  +     * @return the hostname of the HTTP proxy server
  +     * @see HttpConnectionManager#getProxyHost
  +     */
  +    public String getProxyHost()
  +    {
  +        return mgr.getProxyHost();
  +    }
  +
  +    /**
  +     * Sets the port number for the HTTP proxy server to use
  +     * for all requests.
  +     *
  +     * @param port the proxy server port number
  +     * @see HttpConnectionManager#setProxyPort
  +     */
  +    public void setProxyPort(int port)
  +    {
  +        mgr.setProxyPort(port);
  +    }
  +
  +    /**
  +     * Returns the HTTP proxy server port number
  +     * 
  +     * @return the HTTP proxy server port number
  +     * @see HttpConnectionManager#getProxyPort
  +     */
  +    public int getProxyPort()
  +    {
  +        return mgr.getProxyPort();
       }
   
       /**
  
  
  

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