Commit Graph

779 Commits

Author SHA1 Message Date
Oleg Kalnichevski 3ab333f897 Upgraded Mime4j dependency to version 0.4
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@687151 13f79535-47bb-0310-9956-ffa450edef68
2008-08-19 20:47:00 +00:00
Oleg Kalnichevski 9300827b9e Removed outdated jardiff logs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@687115 13f79535-47bb-0310-9956-ffa450edef68
2008-08-19 18:05:24 +00:00
Oleg Kalnichevski e07c5a6167 Updated the web site and POM descriptors for 4.0-beta1 release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@687114 13f79535-47bb-0310-9956-ffa450edef68
2008-08-19 18:03:52 +00:00
Oleg Kalnichevski a0c1b38bb7 Synched with the latest API changes in Mime4j
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@687113 13f79535-47bb-0310-9956-ffa450edef68
2008-08-19 18:02:27 +00:00
Oleg Kalnichevski d2b34bce20 HTTPCLIENT-790: Protocol interceptors not called when executing CONNECT methods
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@685136 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12 12:53:49 +00:00
Oleg Kalnichevski 1f7f493c18 HTTPCLIENT-789: Support for passing an SSLContext to the SSLSocketFactory
Contributed by Bruno Harbulot <Bruno.Harbulot at manchester.ac.uk>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@684578 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 19:35:36 +00:00
Oleg Kalnichevski 43c53f2ecf Added info about basic execution flow to HttpClient javadocs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@679523 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 20:08:05 +00:00
Oleg Kalnichevski bcd59b2007 Fixed generics warning
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@679520 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 20:00:27 +00:00
Oleg Kalnichevski 685ca305b7 Disabled HttpMime module as there is no hope of mime4j release in a foreseeable future
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@679519 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 19:54:43 +00:00
Oleg Kalnichevski a66230a60a Moved suffixlist.txt to the test resources; fixed failing test cases
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@679518 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 19:52:55 +00:00
Ortwin Glueck 403f7623c7 no author tags
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@679405 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 13:35:39 +00:00
Ortwin Glueck 15a027f427 added support for the public suffix list
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@679322 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 09:22:30 +00:00
Ortwin Glueck f87aaff0f1 added punycode infrastructure
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@679321 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 09:21:51 +00:00
Ortwin Glueck 114e1d22fe added punycode infrastructure
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@679320 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 09:21:13 +00:00
Ortwin Glueck ad0d0b1f17 indentation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@678444 13f79535-47bb-0310-9956-ffa450edef68
2008-07-21 14:42:00 +00:00
Oleg Kalnichevski 02c04ffe73 Moved the default context initialization code to the DefaultHttpClient#createHttpContext method; replaced synchronized HttpContext impl with a non synchronized one: there is a new instance of HttpContext created for each request, there is no point to synchronize access to it
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@677250 13f79535-47bb-0310-9956-ffa450edef68
2008-07-16 11:45:47 +00:00
Oleg Kalnichevski e410739b7d * Added handling of exceptions to the HttpClient#execute methods that take a ResponseHandler as a parameter
* Modified AbstractVerifier to use log instead of printStackTrace()

* Modified BasicResponseHandler to always throw an exception when status >= 300, even if entity == null

* Fixed concurrency problem in ConnectionPoolByRoute. Before this change, the RouteSpecificPool could be removed between the time that the waiting thread was notified and it actually woke up. The code was modified to not remove the thread from the RSP until it wakes up, so pool.isUnused() returns false when a thread is actually still waiting.

* Reordered date patterns in DateUtils. Someone claimed this enhanced performance.

* Small Javadoc fix in NetscapeDraftSpec

* Modified RFC2109Spec#formatCookies() to not modify the passed in list (it could be unmodifiable)

Contributed by Bob Lee <crazybob at crazybob.org>
Reviewed by Oleg Kalnichevski


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@677240 13f79535-47bb-0310-9956-ffa450edef68
2008-07-16 11:25:47 +00:00
Oleg Kalnichevski 9126cd2183 Renamed DefaultClientRequestDirector to DefaultRequestDirector
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@676023 13f79535-47bb-0310-9956-ffa450edef68
2008-07-11 16:40:56 +00:00
Oleg Kalnichevski 17d75864d9 Renamed ClientRequestDirector to RequestDirector, ClientResponseHandler to ResponseHandler. Client prefix is superfluous due to the package name
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@676020 13f79535-47bb-0310-9956-ffa450edef68
2008-07-11 16:38:49 +00:00
Oleg Kalnichevski b5bac2833f HTTPCLIENT-784: Improved browser compatibility mode of the HttpMultipart class; upgraded mime4j dependency to version 0.4-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@675712 13f79535-47bb-0310-9956-ffa450edef68
2008-07-10 20:16:33 +00:00
Oleg Kalnichevski ec0c961cbb HTTPCLIENT-745: made classes with private package visibility public
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@674186 13f79535-47bb-0310-9956-ffa450edef68
2008-07-05 12:18:54 +00:00
Oleg Kalnichevski 26ddbc1d1b Removed transient modifier from declarations of Log instance variables
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@673450 13f79535-47bb-0310-9956-ffa450edef68
2008-07-02 17:35:05 +00:00
Oleg Kalnichevski 8a92c9712d HTTPCLIENT-668: removed static loggers
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@673172 13f79535-47bb-0310-9956-ffa450edef68
2008-07-01 18:52:41 +00:00
Sam Berlin 55c231d227 fixed keep-alive problem reported by Paul Linder -- expired connections weren't accurately decrementing the total connection count, causing total-connection limits to gradually decay, stalling connections.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672973 13f79535-47bb-0310-9956-ffa450edef68
2008-07-01 01:49:10 +00:00
Sam Berlin bf6371eae6 simplified idle duration to start counting when connection is released
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672969 13f79535-47bb-0310-9956-ffa450edef68
2008-07-01 01:09:50 +00:00
Oleg Kalnichevski ea0e787fde Added debug logs about ConnPoolByRoute internal state
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672853 13f79535-47bb-0310-9956-ffa450edef68
2008-06-30 18:13:07 +00:00
Sam Berlin fb2af3f61f expanded ClientResponseHandler javadocs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672641 13f79535-47bb-0310-9956-ffa450edef68
2008-06-29 17:03:08 +00:00
Oleg Kalnichevski 149f5363d4 Added example demonstrating the use of the ClientResponseHandler interface
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672427 13f79535-47bb-0310-9956-ffa450edef68
2008-06-27 23:38:31 +00:00
Oleg Kalnichevski 96335cd101 Added ClientResponseHandler interface and new methods for the HttpClient interface as suggested by Bob Lee <crazybob at crazybob.org>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672425 13f79535-47bb-0310-9956-ffa450edef68
2008-06-27 23:33:05 +00:00
Sam Berlin dee6af01ad simplified keep-alive support. changed ConnectionKeepAliveStrategy to return time in ms, instead of time & timeunit in two different calls. reverted ConnectionReleaseTrigger.releaseConnection to take zero params & instead added a setIdleDuration method to ManagedClientConnection, along with converting direct uses of ClientConnectionManager.releaseConnection to instead go through ManagedClientConnection.releaseConnection (which now uses the idle time when giving itself to the manager).
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672367 13f79535-47bb-0310-9956-ffa450edef68
2008-06-27 19:49:20 +00:00
Oleg Kalnichevski 932d21df7b HTTPCLIENT-781: made DefaultConnectionKeepAliveStrategy a little cleaner / more efficient
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@671953 13f79535-47bb-0310-9956-ffa450edef68
2008-06-26 17:12:45 +00:00
Sam Berlin 4752936837 HTTPCLIENT-781 -- respect keep-alive header.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@671717 13f79535-47bb-0310-9956-ffa450edef68
2008-06-26 04:03:24 +00:00
Oleg Kalnichevski 710c7d08f3 Upgraded HttpCore dependency to 4.0-beta2
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@670018 13f79535-47bb-0310-9956-ffa450edef68
2008-06-20 18:19:55 +00:00
Oleg Kalnichevski 96c32bc835 Use #createHttpContext() instead of new BasicHttpContext()
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@667772 13f79535-47bb-0310-9956-ffa450edef68
2008-06-14 11:01:24 +00:00
Oleg Kalnichevski f267f66df9 Changed #rewriteRequestURI method visibility to protected
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@665917 13f79535-47bb-0310-9956-ffa450edef68
2008-06-09 22:07:49 +00:00
Sam Berlin baaef5ace5 add HTTPCLIENT-779 change to release notes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664534 13f79535-47bb-0310-9956-ffa450edef68
2008-06-08 18:11:52 +00:00
Sam Berlin 284556d9be HTTPCLIENT-779: toplevel exception cleanup. HttpClient.execute now only throws an IOException (and specific subtypes of that), and HttpGet/HttpPut and associated classes' String constructor now throw IllegalArgumentException instead of URISyntaxException.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664505 13f79535-47bb-0310-9956-ffa450edef68
2008-06-08 13:21:20 +00:00
Sam Berlin 13ba9862e0 add TestSCMWithServer to suite
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664384 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 21:07:47 +00:00
Sam Berlin 8c519d0928 give server some time to accept for testAbortAfterSocketConnect too
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664379 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 20:20:09 +00:00
Sam Berlin fdb6ace290 add a delay before checking accepted connections
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664373 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 18:50:30 +00:00
Oleg Kalnichevski df92be5902 Better code for handling of non-repeatable requests
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664326 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 11:48:27 +00:00
Oleg Kalnichevski a25cb3c6c0 HttpClient will throw an exception if an attempt is made to retry a request with a non-repeatable request entity.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664066 13f79535-47bb-0310-9956-ffa450edef68
2008-06-06 18:13:18 +00:00
Oleg Kalnichevski c4fd46d1f8 * Fixed bug introduced by my previous patch
* Optimized the way requests are re-tried. If a request is submitted over a direct connection, there is no need to regenerate the request wrapper and re-run protocol interceptors on it 


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@662030 13f79535-47bb-0310-9956-ffa450edef68
2008-05-31 14:19:35 +00:00
Oleg Kalnichevski 650a04c734 Fixed request re-generation logic when retrying a failed request. Auto-generated headers will no accumulate.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@661444 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 19:41:00 +00:00
Oleg Kalnichevski 59e54a8e42 Moved AuthState to o.a.http.auth package
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659971 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 12:01:22 +00:00
Oleg Kalnichevski 68b9913d7d Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659788 13f79535-47bb-0310-9956-ffa450edef68
2008-05-24 10:42:23 +00:00
Oleg Kalnichevski c0cf0c7654 HTTPCLIENT-424: Preemptive authentication no longer limited to BASIC scheme only. HttpClient can be customized to authenticate preemptively with DIGEST scheme
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659595 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 16:47:14 +00:00
Oleg Kalnichevski d4f31204fb HTTPCLIENT-777: SingleClientConnectionManager Needs to Recreate UniquePoolEntry
Contributed by Sam Berlin <sberlin at gmail.com>
Reviewed by Oleg Kalnichevski




git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659198 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 18:42:00 +00:00
Oleg Kalnichevski a89695fea4 HTTPCLIENT-670: Pluggable hostname resolver
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659194 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 18:33:47 +00:00
Oleg Kalnichevski 5cd9d169f2 HTTPCLIENT-719: Clone support for HTTP request and cookie objects
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659191 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 18:26:53 +00:00