Gary D. Gregory
c7c70ec451
Convert control statement bodies to block.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1558060 13f79535-47bb-0310-9956-ffa450edef68
2014-01-14 14:52:13 +00:00
Francois-Xavier Bonnet
8acc3ad661
HTTPCLIENT-1443: HttpCache uses the physical host instead of the virtual host in the cache key
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1553642 13f79535-47bb-0310-9956-ffa450edef68
2013-12-27 08:18:03 +00:00
Oleg Kalnichevski
ae429fab28
HTTPCLIENT-1441: Caching AsynchronousValidationRequest leaks connections.
...
Contributed by Dominic Tootell <dominic.tootell at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1546855 13f79535-47bb-0310-9956-ffa450edef68
2013-12-01 20:33:37 +00:00
Oleg Kalnichevski
85a99b22e4
HTTPCLIENT-1428: Fixed Javadoc typo
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1537133 13f79535-47bb-0310-9956-ffa450edef68
2013-10-30 15:31:21 +00:00
Oleg Kalnichevski
1003beffc0
HTTPCLIENT-1425: Fixed socket closed exception thrown by caching HttpClient when the origin server sends a long chunked response (follow-up)
...
Contributed by James Leigh <james at 3roundstones dot com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1534757 13f79535-47bb-0310-9956-ffa450edef68
2013-10-22 19:59:14 +00:00
Oleg Kalnichevski
6bb9398b39
HTTPCLIENT-1425: Fixed socket closed exception thrown by caching HttpClient when the origin server sends a long chunked response
...
Contributed by James Leigh <james at 3roundstones dot com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1534585 13f79535-47bb-0310-9956-ffa450edef68
2013-10-22 10:10:16 +00:00
Oleg Kalnichevski
df36e1087c
HTTPCLIENT-1416: Fixed NPE in CachingHttpClientBuilder#build()
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1529812 13f79535-47bb-0310-9956-ffa450edef68
2013-10-07 10:08:05 +00:00
Oleg Kalnichevski
b83c1b9358
Upgraded HttpClient version to 4.3.2-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1529810 13f79535-47bb-0310-9956-ffa450edef68
2013-10-07 09:49:54 +00:00
Oleg Kalnichevski
eff62c7a6e
Upgraded HttpClient version to 4.3.1-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1521260 13f79535-47bb-0310-9956-ffa450edef68
2013-09-09 19:32:04 +00:00
Oleg Kalnichevski
6b5327c64b
Removed website resources
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1519408 13f79535-47bb-0310-9956-ffa450edef68
2013-09-02 12:15:03 +00:00
Jonathan Moore
b7b4ef91a4
HTTPCLIENT-1371: Weak ETag Validation is Useful On PUT With If-Match
...
Contributed by James Leigh <james at 3roundstones dot com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1519005 13f79535-47bb-0310-9956-ffa450edef68
2013-08-30 16:01:37 +00:00
Oleg Kalnichevski
c787841e42
Manually configured maven reports that are applicable to the given artifact
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1517799 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 12:04:46 +00:00
Oleg Kalnichevski
c1a065aec5
Fixed javadoc plugin configuration
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1517798 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 12:04:15 +00:00
Oleg Kalnichevski
0101c2f949
HTTPCLIENT-1384: Expose CacheInvalidator interface
...
Contributed by Nicolas Richeton <nicolas.richeton at free.fr>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1515814 13f79535-47bb-0310-9956-ffa450edef68
2013-08-20 13:10:55 +00:00
Oleg Kalnichevski
c0c92b814c
Javadoc updates
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1515547 13f79535-47bb-0310-9956-ffa450edef68
2013-08-19 18:28:43 +00:00
Oleg Kalnichevski
71ef668258
HTTPCLIENT-1385: Fixed path normalization in CacheKeyGenerator
...
Contributed by James Leigh <james at 3roundstones dot com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1513622 13f79535-47bb-0310-9956-ffa450edef68
2013-08-13 19:38:48 +00:00
Jonathan Moore
38c7647050
HTTPCLIENT-1370: Response to non-GET requests should never be cached with the default
...
ResponseCachingPolicy
Contributed by James Leigh <james at 3roundstones dot com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1512552 13f79535-47bb-0310-9956-ffa450edef68
2013-08-10 02:06:48 +00:00
Jonathan Moore
0364f0156b
HTTPCLIENT-1373: OPTIONS and TRACE should not invalidate cache
...
Contributed by James Leigh <james at 3roundstones dot com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1512441 13f79535-47bb-0310-9956-ffa450edef68
2013-08-09 18:50:43 +00:00
Oleg Kalnichevski
888b783538
Fixed duplicate N&L problem by removing maven-notice-plugin in favor of maven-remote-resource-plugin included through Apache parent POM
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1512361 13f79535-47bb-0310-9956-ffa450edef68
2013-08-09 15:57:15 +00:00
Oleg Kalnichevski
7005e49c57
Upgraded parent pom to version 7; removed assembly plugin; removed clover profile
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1512192 13f79535-47bb-0310-9956-ffa450edef68
2013-08-09 07:24:29 +00:00
Oleg Kalnichevski
e7d9978f26
Moved deprecated classes to a separate scr folder
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1507633 13f79535-47bb-0310-9956-ffa450edef68
2013-07-27 13:16:37 +00:00
Francois-Xavier Bonnet
981aa247d7
HTTPCLIENT-1361: stale-while-revalidate should work also without last-modified nor etag
...
HTTPCLIENT-1368: stale-if-error request cache directive should also apply to non-revalidatable cache entries
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1499502 13f79535-47bb-0310-9956-ffa450edef68
2013-07-03 18:11:35 +00:00
Oleg Kalnichevski
594f24cf05
HTTPASYNC-46: HttpClient cache test cases can be shared with HttpAsyncClient
...
Contributed by James Leigh <james at 3roundstones.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1494755 13f79535-47bb-0310-9956-ffa450edef68
2013-06-19 19:50:02 +00:00
Sebastian Bazley
3956b9f30f
Wrong field used; config parameter can be null which would cause NPE here
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1493755 13f79535-47bb-0310-9956-ffa450edef68
2013-06-17 13:23:02 +00:00
Sebastian Bazley
0533ce7c53
Remove unthrown exceptions from private and package methods
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1493752 13f79535-47bb-0310-9956-ffa450edef68
2013-06-17 13:15:48 +00:00
Oleg Kalnichevski
56b7cbe159
Upgraded project version to 4.3-beta3-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1492097 13f79535-47bb-0310-9956-ffa450edef68
2013-06-12 07:51:45 +00:00
Oleg Kalnichevski
b1c387e986
Style-check to enforce unused import and final variable checks
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1491511 13f79535-47bb-0310-9956-ffa450edef68
2013-06-10 15:52:49 +00:00
Jonathan Moore
908b81dd5a
HTTPCLIENT-1353: 303 redirects should be cacheable
...
Commit of patch #1 to synchronous client from James Leigh
<james at 3roundstones dot com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1490448 13f79535-47bb-0310-9956-ffa450edef68
2013-06-06 21:25:04 +00:00
Oleg Kalnichevski
d917eec043
Removed executable flag
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1487414 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 09:05:37 +00:00
Oleg Kalnichevski
ff1acb48a8
Code cleanups
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1483265 13f79535-47bb-0310-9956-ffa450edef68
2013-05-16 09:12:42 +00:00
Oleg Kalnichevski
456461b1c6
HTTPCLIENT-1299: (regression) cache incorrectly disposes of the underlying cache resource when storing variant entry (follow-up)
...
Contributed by James Leigh <james at 3roundstones.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1468823 13f79535-47bb-0310-9956-ffa450edef68
2013-04-17 10:18:48 +00:00
Oleg Kalnichevski
c53c5f1e1e
Upgraded project version to 4.3-beta2-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1466429 13f79535-47bb-0310-9956-ffa450edef68
2013-04-10 11:30:43 +00:00
Oleg Kalnichevski
fc298adb7c
Removed Clirr plugin config from HttpClient Cache (should be inherited from parent)
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1464368 13f79535-47bb-0310-9956-ffa450edef68
2013-04-04 08:57:59 +00:00
Oleg Kalnichevski
a6a328a7af
Moved DateUtils to o.a.http.client.utils
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1464366 13f79535-47bb-0310-9956-ffa450edef68
2013-04-04 08:57:36 +00:00
Oleg Kalnichevski
3f444fc740
Deprecated ClientContext; removed references to deprecated methods
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1463938 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 11:56:34 +00:00
Oleg Kalnichevski
0bbbd742b8
HTTPCLIENT-1213: Avoid parsing HttpCacheEntry date attribute multiple times.
...
Contributed by Sam Perman <sam at permans.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1463551 13f79535-47bb-0310-9956-ffa450edef68
2013-04-02 14:05:12 +00:00
Oleg Kalnichevski
e1ca6d2fb8
HTTPCLIENT-1299: (regression) cache incorrectly disposes of the underlying cache resource when storing variant entry
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1462069 13f79535-47bb-0310-9956-ffa450edef68
2013-03-28 12:36:03 +00:00
Francois-Xavier Bonnet
932721b54f
HTTPCLIENT-1310: Allow background validation to optionally back off after a number of failed requests
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1450718 13f79535-47bb-0310-9956-ffa450edef68
2013-02-27 10:34:05 +00:00
Francois-Xavier Bonnet
a54e7031b1
HTTPCLIENT-1324: CachingHttpClientBuilder.build() fails when asynchronousWorkersMax=0
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1447763 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 15:23:16 +00:00
Oleg Kalnichevski
983bef040d
Fixed Java 5 incompatibility causing a compile error with JDK 1.5
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1437994 13f79535-47bb-0310-9956-ffa450edef68
2013-01-24 13:37:10 +00:00
Oleg Kalnichevski
508497a8be
HTTPCLIENT-1298: Add AsynchronousValidator in HttpClientBuilder's list of closeable objects
...
Contributed by Martin Meinhold <mmeinhold at atlassian.com>
* Resolve constructor dependency between CachingExec and AsynchronousValidator
* AsynchronousValidator implements Closeable interface
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1437952 13f79535-47bb-0310-9956-ffa450edef68
2013-01-24 11:05:36 +00:00
Gary D. Gregory
7f6198fe46
Organize imports.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1437584 13f79535-47bb-0310-9956-ffa450edef68
2013-01-23 17:23:43 +00:00
Gary D. Gregory
79a3325bda
JUnit 3 -> 4: replace import of junit.framework.Assert with org.junit.Assert.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1437578 13f79535-47bb-0310-9956-ffa450edef68
2013-01-23 17:20:11 +00:00
Oleg Kalnichevski
696b6e117b
Upgraded project version to 4.3-alpha2-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1435976 13f79535-47bb-0310-9956-ffa450edef68
2013-01-20 21:28:23 +00:00
Sebastian Bazley
5bdd456c8c
Javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1435315 13f79535-47bb-0310-9956-ffa450edef68
2013-01-18 19:34:52 +00:00
Oleg Kalnichevski
2ea3298894
Fixed javadocs
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1434000 13f79535-47bb-0310-9956-ffa450edef68
2013-01-16 15:54:44 +00:00
Gary D. Gregory
3ebbcab3b4
Add final modifier to local variables.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433815 13f79535-47bb-0310-9956-ffa450edef68
2013-01-16 03:27:44 +00:00
Oleg Kalnichevski
3d34035b17
Fixed style check violations (tabs introduced by a previous commit)
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433610 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 20:08:10 +00:00
Gary D. Gregory
276a9c4597
Add final modifier to method parameters.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433569 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 18:29:58 +00:00
Gary D. Gregory
917145dbd3
Convert control statement bodies to block.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433390 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 13:12:01 +00:00
Oleg Kalnichevski
d4dc9e1ac7
Moved internal exec chain classes and interfaces
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432732 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 20:41:41 +00:00
Gary D. Gregory
3a073e8ed8
Add final modifier to private fields.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432552 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 04:49:33 +00:00
Oleg Kalnichevski
4136406ac8
HTTPCLIENT-1290: 304 cached response never reused with If-modified-since conditional requests
...
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1430245 13f79535-47bb-0310-9956-ffa450edef68
2013-01-08 12:16:00 +00:00
Oleg Kalnichevski
8155bab28d
Added static #copy method to config classes
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1428925 13f79535-47bb-0310-9956-ffa450edef68
2013-01-04 15:22:30 +00:00
Oleg Kalnichevski
1db3da376e
tabs -> spaces; removed trailing whilespaces; updated stylecheck definitions
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426529 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 14:48:57 +00:00
Oleg Kalnichevski
1c322eb843
Added minimal style checks: licence header, file length, illegal imports
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426521 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 14:36:14 +00:00
Oleg Kalnichevski
38e6a997fc
HTTPCLIENT-1250: Allow query string to be ignored when determining cacheability for HTTP 1.0 responses
...
Contributed by Don Brown <mrdon at twdata.org>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424589 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 16:56:41 +00:00
Oleg Kalnichevski
b6d7989aae
Authmatically shut down file system based cache storage instantiated by CachingHttpClientBuilder
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423960 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 17:12:03 +00:00
Oleg Kalnichevski
877970d7d8
Use Asserts to verify object state (follow-up)
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423806 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 09:45:50 +00:00
Oleg Kalnichevski
d72e9b3ae7
Use Asserts to verify object state; use Args to verify method arguments
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423516 13f79535-47bb-0310-9956-ffa450edef68
2012-12-18 16:22:58 +00:00
Oleg Kalnichevski
12d11324c0
HTTPCLIENT-1280: CachingExec catches SocketTimeoutException silently and closes the backend InputStream
...
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423024 13f79535-47bb-0310-9956-ffa450edef68
2012-12-17 17:11:36 +00:00
Oleg Kalnichevski
a92a196de2
HTTPCLIENT-1277: Caching client sends a 304 to an unconditional request.
...
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1421977 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 17:02:46 +00:00
Oleg Kalnichevski
a273929a9b
Follow-up to HTTPCLIENT-1276
...
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1421844 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 13:24:46 +00:00
Oleg Kalnichevski
1779158a4f
HTTPCLIENT-1276: cache update on a 304 response causes NPE
...
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1421330 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 15:08:01 +00:00
Oleg Kalnichevski
278e06df47
Ensure backend response is correctly closed in case of a HTTP, i/o or runtime error
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1420391 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 20:40:27 +00:00
Oleg Kalnichevski
f643326e9e
Moved HttpClientBuilder
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1420122 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 12:22:58 +00:00
Oleg Kalnichevski
034805c3af
Added caching specific HttpClient builder
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1420121 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 12:20:08 +00:00
Oleg Kalnichevski
b257aeec70
Added cache specific HttpContext adaptor
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1419448 13f79535-47bb-0310-9956-ffa450edef68
2012-12-10 13:40:25 +00:00
Oleg Kalnichevski
fcd02a0a18
Ported CachingHttpClient to ClientExecChain API
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1418743 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 19:59:24 +00:00
Gary D. Gregory
cdaca60ad0
Use the 'maven.compile.source' property instead of a hard-wired version number.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1418304 13f79535-47bb-0310-9956-ffa450edef68
2012-12-07 13:28:03 +00:00
Oleg Kalnichevski
9aea057953
Ported internal caching classes to the new execution chain API
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1417343 13f79535-47bb-0310-9956-ffa450edef68
2012-12-05 10:34:46 +00:00
Oleg Kalnichevski
0edf06281f
Made CacheConfig consistent with the new config API
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1416582 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 16:34:27 +00:00
Gary D. Gregory
f81dd8f31a
The root project defines module the properties used by all the other modules.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1414748 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 15:17:17 +00:00
Oleg Kalnichevski
f24317d156
HTTPCLIENT-1263: CachingHttpClient fails to release connections back to the connection manager for some type of HTTP response messages when used together with DecompressingHttpClient
...
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1412858 13f79535-47bb-0310-9956-ffa450edef68
2012-11-23 12:45:02 +00:00
Sebastian Bazley
e9ed1f5725
Fix some obvious boxing in test classes
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406888 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 01:34:17 +00:00
Sebastian Bazley
c2e94980e1
Formatter instances need to be closed
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406436 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 03:24:08 +00:00
Sebastian Bazley
4e3cbc31a7
Explicit Boolean rather than boxing
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406435 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 03:23:35 +00:00
Sebastian Bazley
321319c965
Missing @Override
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406426 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 02:47:49 +00:00
Sebastian Bazley
e1395539de
Unthrown exceptions
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406425 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 02:47:24 +00:00
Sebastian Bazley
73054957f8
Unnecessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406424 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 02:47:01 +00:00
Oleg Kalnichevski
43d4e8f469
HTTPCLIENT-1244: relaxed EasyMock based unit tests in the Caching module
...
Contributed by Joe Campbell <joseph.r.campbell at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1395613 13f79535-47bb-0310-9956-ffa450edef68
2012-10-08 15:26:50 +00:00
Jonathan Moore
b7d1d69ef6
HTTPCLIENT-1223: Forward port from 4.2.X branch to trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1376181 13f79535-47bb-0310-9956-ffa450edef68
2012-08-22 18:31:52 +00:00
Oleg Kalnichevski
8ef44683ba
Upgraded project version to 4.3-alpha1-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1369849 13f79535-47bb-0310-9956-ffa450edef68
2012-08-06 13:59:21 +00:00
Oleg Kalnichevski
b7f85c1af7
Upgraded project version to 4.2.2-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1356623 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 08:52:49 +00:00
Oleg Kalnichevski
faef016a2c
HTTPCLIENT-1201: Quick start doc improvements
...
Contributed by miles zarathustra <albert.bradley at thomsonreuters.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353605 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 15:43:28 +00:00
Jonathan Moore
c429b34ca9
HTTPCLIENT-1202: Allow for caching responses without bodies.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1347764 13f79535-47bb-0310-9956-ffa450edef68
2012-06-07 19:43:22 +00:00
Jonathan Moore
2748f2748a
HTTPCLIENT-1202: ResponseCachingPolicy had a bug that was making it too
...
draconian in refusing to cache certain responses.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1347627 13f79535-47bb-0310-9956-ffa450edef68
2012-06-07 14:14:42 +00:00
Jonathan Moore
218823fa4e
HTTPCLIENT-1198: HttpHost is not set in HttpContext in CachingHttpClient.
...
This patch (with tests) primarily just needs to figure out how to set
appropriate context variables in the event of a pure cache hit--in the
event of a cache miss or a cache validation, we actually make an origin
request, and the "backend" client sets these context variables.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1345297 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 18:09:49 +00:00
Jonathan Moore
59314afc7d
Added XML Schema reference for site.xml files.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1344849 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 18:24:23 +00:00
Oleg Kalnichevski
570aa9fa37
Upgraded project version to 4.2.1-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1340700 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 12:51:21 +00:00
Oleg Kalnichevski
1b063abfa9
HTTPCLIENT-1187: If a revalidation response is deemed too old CachingHttpClient fails to consume its content resulting in a connection leak
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1335726 13f79535-47bb-0310-9956-ffa450edef68
2012-05-08 19:54:27 +00:00
Oleg Kalnichevski
a8d2e5e5fa
Added release version to deprecation annotations; removed references to deprecated methods / classes
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1335088 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 16:06:11 +00:00
Oleg Kalnichevski
747593abb7
Upgraded project version to 4.2-beta2-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1242454 13f79535-47bb-0310-9956-ffa450edef68
2012-02-09 18:40:08 +00:00
Oleg Kalnichevski
e7ab117ea5
Added missing ASL header
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1240777 13f79535-47bb-0310-9956-ffa450edef68
2012-02-05 18:17:02 +00:00
Oleg Kalnichevski
648e5ab9be
Added missing ASL header
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1240723 13f79535-47bb-0310-9956-ffa450edef68
2012-02-05 13:18:38 +00:00
Oleg Kalnichevski
10f6da691e
Moved Memcached specific interfaces from the public API space to the impl package (will also make maintenace of OSGi metadata easier)
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1239803 13f79535-47bb-0310-9956-ffa450edef68
2012-02-02 20:17:10 +00:00
Oleg Kalnichevski
8265a355e7
Fixed javadoc warnings
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1239801 13f79535-47bb-0310-9956-ffa450edef68
2012-02-02 20:15:11 +00:00
Oleg Kalnichevski
e2da283f21
HTTPCLIENT-1147: backed out API breaking changes
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1239536 13f79535-47bb-0310-9956-ffa450edef68
2012-02-02 11:12:11 +00:00
Jonathan Moore
cac1432472
HTTPCLIENT-1154: MemcachedHttpCacheStorage should allow client
...
to specify custom prefix string for keys. This is implemented by
providing a decorator KeyHashingScheme that adds the prefix.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1232588 13f79535-47bb-0310-9956-ffa450edef68
2012-01-17 21:35:08 +00:00
Jonathan Moore
d47c30baae
HTTPCLIENT-1153: Added a hashing scheme to map the higher-level
...
logical storage keys the CachingHttpClient wants to store cache
entries under onto a keyspace suitable for use with memcached
(which has a max key length smaller than the logical keys we use).
A default hashing scheme based on SHA-256 is also provided.
Finally, since hashing now introduces the possibility of collisions,
we have to store the logical storage key along with the cache entry
itself so that it can be compared on retrieval. Implemented a new
serialization scheme to accommodate this (with associated interfaces
so this could be overridden if desired). Unfortunately, this meant
that one of the existing constructors that accepted an old-style
custom serializer had to be deprecated (default implementations of
the new serializers are used instead).
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1232489 13f79535-47bb-0310-9956-ffa450edef68
2012-01-17 17:12:14 +00:00