Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 8519 invoked from network); 9 May 2002 19:31:13 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 May 2002 19:31:13 -0000 Received: (qmail 26051 invoked by uid 97); 9 May 2002 19:30:38 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 26022 invoked by uid 97); 9 May 2002 19:30:37 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 25991 invoked by uid 97); 9 May 2002 19:30:36 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: 9 May 2002 19:30:22 -0000 Message-ID: <20020509193022.63691.qmail@icarus.apache.org> From: marcsaeg@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMultiClient.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: For additional commands, e-mail: