Return-Path: Delivered-To: apmail-hc-commits-archive@www.apache.org Received: (qmail 9483 invoked from network); 13 Dec 2010 11:36:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Dec 2010 11:36:01 -0000 Received: (qmail 37688 invoked by uid 500); 13 Dec 2010 11:36:01 -0000 Delivered-To: apmail-hc-commits-archive@hc.apache.org Received: (qmail 37643 invoked by uid 500); 13 Dec 2010 11:36:00 -0000 Mailing-List: contact commits-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list commits@hc.apache.org Received: (qmail 37628 invoked by uid 99); 13 Dec 2010 11:35:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 11:35:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 11:35:56 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6AB462388A32; Mon, 13 Dec 2010 11:35:35 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1045074 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultHttpClient.java Date: Mon, 13 Dec 2010 11:35:35 -0000 To: commits@hc.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101213113535.6AB462388A32@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebb Date: Mon Dec 13 11:35:35 2010 New Revision: 1045074 URL: http://svn.apache.org/viewvc?rev=1045074&view=rev Log: Document initial parameter settings Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultHttpClient.java Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultHttpClient.java URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultHttpClient.java?rev=1045074&r1=1045073&r2=1045074&view=diff ============================================================================== --- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultHttpClient.java (original) +++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultHttpClient.java Mon Dec 13 11:35:35 2010 @@ -71,6 +71,8 @@ import org.apache.http.impl.cookie.Ignor import org.apache.http.impl.cookie.NetscapeDraftSpecFactory; import org.apache.http.impl.cookie.RFC2109SpecFactory; import org.apache.http.impl.cookie.RFC2965SpecFactory; +import org.apache.http.params.CoreConnectionPNames; +import org.apache.http.params.CoreProtocolPNames; import org.apache.http.params.HttpConnectionParams; import org.apache.http.params.HttpParams; import org.apache.http.params.HttpProtocolParams; @@ -190,6 +192,17 @@ public class DefaultHttpClient extends A } + /** + * Creates the default set of HttpParams. + * These are: + *
    + *
  • {@link CoreProtocolPNames#PROTOCOL_VERSION}: 1.1
  • + *
  • {@link CoreProtocolPNames#HTTP_CONTENT_CHARSET}: ISO-8859-1
  • + *
  • {@link CoreConnectionPNames#TCP_NODELAY}: true
  • + *
  • {@link CoreConnectionPNames#SOCKET_BUFFER_SIZE}: 8192
  • + *
  • {@link CoreProtocolPNames#USER_AGENT}: Apache-HttpClient/ (java 1.5)
  • + *
+ */ @Override protected HttpParams createHttpParams() { HttpParams params = new SyncBasicHttpParams();