Commit Graph

1350 Commits

Author SHA1 Message Date
Oleg Kalnichevski 7891d8c2d4 Refactored exception handling: replaced HttpCacheOperationException with a more generic IOException. This should provide a more natural way of signaling exceptions for file system based caches
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@979259 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 12:20:02 +00:00
Oleg Kalnichevski c2622c8ca2 HTTPCLIENT-969: BasicCookieStore#getCookies() to return a copy of Cookie list
Contributed by David Smiley <dsmiley at mitre.org>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@967227 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 19:45:47 +00:00
Oleg Kalnichevski 5059eddd97 Code cleanups
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@967206 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 19:06:42 +00:00
Oleg Kalnichevski 7205e7d340 HTTP Cache API refactoring: entry validation logic factored out from CacheEntry to a separate policy class; HttpCacheEntry should now contain (almost) no protocol specific code
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@966642 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 13:16:29 +00:00
Oleg Kalnichevski 8cf6a94f60 Fixed request exec count
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@965986 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 20:21:41 +00:00
Oleg Kalnichevski ee323a52fa Deprecated ConnManagerPNames and related classes; 'http.conn-manager.timeout' parameter deprecated in favor of 'http.connection.timeout'; improved javadocs for deprecated classes; renamed methods in ThreadSafeClientConnManager for better consistency
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@965983 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 20:14:09 +00:00
Oleg Kalnichevski 5a54675818 Reduced visibility of non-essential classes and methods to default (package private). Visibility can be increased on a case by case basis as the Cache API evolves and matures
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@964565 13f79535-47bb-0310-9956-ffa450edef68
2010-07-15 20:17:00 +00:00
Oleg Kalnichevski c10d235ed2 Generified HttpCache key
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@963854 13f79535-47bb-0310-9956-ffa450edef68
2010-07-13 20:40:56 +00:00
Oleg Kalnichevski 818b97fd4c Removed unused code
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@963853 13f79535-47bb-0310-9956-ffa450edef68
2010-07-13 20:29:04 +00:00
Oleg Kalnichevski 76e37db58a * Disambiguated the contract of HttpCache#updatEntry / HttpCacheUpdateCallback
Contributed by Jonathan Moore <jonathan_moore at comcast.com>

* Fixed method synchronization in BasicHttpCache 


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@963849 13f79535-47bb-0310-9956-ffa450edef68
2010-07-13 20:14:00 +00:00
Oleg Kalnichevski 6aad9ccf99 HTTPCLIENT-963: Fixed handling of 'Cache-Control: no-store' on requests
Contributed by Jonathan Moore <jonathan_moore at comcast.com>



git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@963495 13f79535-47bb-0310-9956-ffa450edef68
2010-07-12 21:36:47 +00:00
Oleg Kalnichevski e2efb17400 HTTPCLIENT-965: cache does not honor must-revalidate or proxy-revalidate Cache-Control directives
Contributed by Jonathan Moore <jonathan_moore at comcast.com>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@961424 13f79535-47bb-0310-9956-ffa450edef68
2010-07-07 16:09:34 +00:00
Oleg Kalnichevski 448ff5f344 HTTPCLIENT-964: no-cache directives with field names are no longer transmitted downstream
Contributed by Jonathan Moore <jonathan_moore at comcast.com>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@961422 13f79535-47bb-0310-9956-ffa450edef68
2010-07-07 16:01:48 +00:00
Oleg Kalnichevski 7b21535a49 HTTPCLIENT-962: Fixed handling of Authorization headers in shared cache mode
Contributed by Jonathan Moore <jonathan_moore at comcast.com>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@960338 13f79535-47bb-0310-9956-ffa450edef68
2010-07-04 13:57:45 +00:00
Oleg Kalnichevski c85eaa094b HTTPCLIENT-961: Not all applicable URIs are invalidated on PUT/POST/DELETEs that pass through client cache
Contributed by Jonathan Moore <jonathan_moore at comcast.com>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@960337 13f79535-47bb-0310-9956-ffa450edef68
2010-07-04 13:35:27 +00:00
Oleg Kalnichevski 9b8fb9f02a HTTPCLIENT-958: Client cache no longer allows incomplete responses to be passed on to the client
Contributed by Jonathan Moore <jonathan_moore at comcast.com>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@959941 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 10:31:34 +00:00
Oleg Kalnichevski c80f04cb45 HTTPCLIENT-951: Non-repeatable entity enclosing requests are not correctly retried when 'expect-continue' handshake is active
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@956989 13f79535-47bb-0310-9956-ffa450edef68
2010-06-22 19:28:48 +00:00
Sebastian Bazley 117fc08438 Stop the JAVA_1_n_HOME variables from being treated as headers by Bnd
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@955239 13f79535-47bb-0310-9956-ffa450edef68
2010-06-16 14:28:56 +00:00
Oleg Kalnichevski 12e382daf9 Revert change committed by mistake
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954914 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 14:40:31 +00:00
Oleg Kalnichevski 4b73b9c74e HTTPCLIENT-948: Completed refactoring of the idle connection handling code; cleaned up logging in connection management code
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954903 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 14:15:34 +00:00
Sebastian Bazley 11b94cdb86 2.1.0 does not need JDK 1.5
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954746 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 08:18:25 +00:00
Sebastian Bazley a8706c026d Update instructions
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954699 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 02:41:49 +00:00
Sebastian Bazley 25071e091c Disambiguate local links so they work with the Doxia 1.1 (which is current for Maven 2.1.0)
(whilst still remaining compatible with the previous Doxia release)

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954679 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 00:15:49 +00:00
Sebastian Bazley 146d83a920 Fix incorrect markup and invalid quoted link
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954676 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 00:03:05 +00:00
Oleg Kalnichevski a2ad042193 HTTPCLIENT-948: redesign of idle connection handling
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954659 13f79535-47bb-0310-9956-ffa450edef68
2010-06-14 22:00:56 +00:00
Oleg Kalnichevski 0f8ca31e92 HTTPCLIENT-944: maintain separate count of connect attempts
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954282 13f79535-47bb-0310-9956-ffa450edef68
2010-06-13 18:37:25 +00:00
Oleg Kalnichevski 0bb63c609a HTTPCLIENT-953: IllegalStateException thrown by RouteSpecificPool
Contributed by Guillaume <gueugaie at gmail.com>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954258 13f79535-47bb-0310-9956-ffa450edef68
2010-06-13 16:40:04 +00:00
Oleg Kalnichevski 5f8e3d49de Changed comments
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954257 13f79535-47bb-0310-9956-ffa450edef68
2010-06-13 16:39:31 +00:00
Oleg Kalnichevski 3be7e6ab91 HTTPCLIENT-942: tweaked example
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@953985 13f79535-47bb-0310-9956-ffa450edef68
2010-06-12 10:39:36 +00:00
Oleg Kalnichevski 555237285c HTTPCLIENT-951: Test cases
Contributed by Thierry Guérin <thi.guerin at laposte.net>



git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@953890 13f79535-47bb-0310-9956-ffa450edef68
2010-06-11 22:10:52 +00:00
Oleg Kalnichevski ade1571f00 HTTPCLIENT-952: Trust store parameter is ingored by SSLSocketFactory
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@953160 13f79535-47bb-0310-9956-ffa450edef68
2010-06-09 20:59:41 +00:00
Oleg Kalnichevski c4c6cfc413 HTTPCLIENT-948: works around the race condition described in HTTPCLIENT-948
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@950717 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 18:52:05 +00:00
Oleg Kalnichevski 0ea086094e HTTPCLIENT-943: CacheClient Javadoc and Constants usage cleanup
Contributed by Joe Campbell <joseph.r.campbell at gmail.com> 


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@948754 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 10:15:41 +00:00
Oleg Kalnichevski bd15468e72 Fixed svn eol-style and mime-type
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@947681 13f79535-47bb-0310-9956-ffa450edef68
2010-05-24 15:50:16 +00:00
Oleg Kalnichevski 60aead5273 TABS -> SPACES
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@947512 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 22:22:00 +00:00
Oleg Kalnichevski 5edc70cd28 HTTPCLIENT-941: Patch changing Mockito to EasyMock
Contributed by Joe Campbell <joseph.r.campbell at gmail.com> 


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@947510 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 22:20:44 +00:00
Oleg Kalnichevski ef2839b770 HTTPCLIENT-937: CacheEntry made immutable; now uses immutable HttpEntity to store cached content
Contributed by David Mays <david_mays at comcast.com>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@947501 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 21:55:20 +00:00
Oleg Kalnichevski ec44b2c26e Added site for HttpClient cache module
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@945824 13f79535-47bb-0310-9956-ffa450edef68
2010-05-18 18:59:49 +00:00
Oleg Kalnichevski e47331c369 Upgraded project version to 4.1-alpha3-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@945301 13f79535-47bb-0310-9956-ffa450edef68
2010-05-17 18:46:19 +00:00
Sebastian Bazley 80b07581ee SVN eol-style:native
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943759 13f79535-47bb-0310-9956-ffa450edef68
2010-05-13 00:25:52 +00:00
Sebastian Bazley b1fcb10723 SVN eol-style:native
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943758 13f79535-47bb-0310-9956-ffa450edef68
2010-05-13 00:22:19 +00:00
Oleg Kalnichevski 7da47f6827 Updated release notes: added entry on host multihoming
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943685 13f79535-47bb-0310-9956-ffa450edef68
2010-05-12 21:06:46 +00:00
Oleg Kalnichevski 3d4349f44f o.a.http.client.cache.impl -> o.a.http.impl.client.cache for consistency with other modules
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943668 13f79535-47bb-0310-9956-ffa450edef68
2010-05-12 20:11:27 +00:00
Oleg Kalnichevski ca86507442 Updated POMs for the 4.1-alpha2 release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943642 13f79535-47bb-0310-9956-ffa450edef68
2010-05-12 19:23:18 +00:00
Sebastian Bazley 87273f1751 Make new immutable private fields final
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943635 13f79535-47bb-0310-9956-ffa450edef68
2010-05-12 18:55:24 +00:00
Oleg Kalnichevski 13f31eb2db HTTPCLIENT-936: Fixed bug causing NPE or an infinite loop in the authentication code in case of a SPNEGO authentication failure
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943620 13f79535-47bb-0310-9956-ffa450edef68
2010-05-12 18:33:17 +00:00
Oleg Kalnichevski bb0ecdbcb4 HTTPCLIENT-940: deprecated methods dependent on the default charset
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943614 13f79535-47bb-0310-9956-ffa450edef68
2010-05-12 18:20:11 +00:00
Sebastian Bazley 366e154d10 Oops - another mime4j reference to remove
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943292 13f79535-47bb-0310-9956-ffa450edef68
2010-05-11 21:04:10 +00:00
Oleg Kalnichevski c7f3b744e6 HTTPCLIENT-936: Test cases
Contributed by Francois Rigault <francois dot rigault.amadeus.com>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943284 13f79535-47bb-0310-9956-ffa450edef68
2010-05-11 20:36:26 +00:00
Sebastian Bazley bcfe063e96 Exceptions not thrown
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943283 13f79535-47bb-0310-9956-ffa450edef68
2010-05-11 20:33:03 +00:00