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