Commit Graph

324 Commits

Author SHA1 Message Date
Oleg Kalnichevski e9c8797108 Use String methods and constructors that require Charset instead of String
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1561066 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 17:04:04 +00:00
Oleg Kalnichevski 715a34c860 Use Java 1.6 String#isEmpty(); minor cleanups
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1561064 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 17:02:45 +00:00
Oleg Kalnichevski 594f2f4b62 Added missing @Override annotations
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1561063 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 17:02:05 +00:00
Oleg Kalnichevski 54c767ee07 Upgraded project version to 4.4-alpha1-SNAPSHOT; upgraded minimal Java level to 1.6; re-enabled win atuh module
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1561061 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 17:00:08 +00:00
Gary D. Gregory a718eee61c Upgraded HttpClient version to 4.3.3-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1559527 13f79535-47bb-0310-9956-ffa450edef68
2014-01-19 17:07:28 +00:00
Gary D. Gregory f67e596013 Remove useless parens.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1558069 13f79535-47bb-0310-9956-ffa450edef68
2014-01-14 15:07:14 +00:00
Gary D. Gregory fe84b2934c Add final modifier to local variables (exception catch).
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1558064 13f79535-47bb-0310-9956-ffa450edef68
2014-01-14 14:56:59 +00:00
Gary D. Gregory 54667c0a43 Add missing '@Override' annotations.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1558061 13f79535-47bb-0310-9956-ffa450edef68
2014-01-14 14:53:23 +00:00
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