Commit Graph

2544 Commits

Author SHA1 Message Date
Oleg Kalnichevski d969fe8774 HTTPCLIENT-1162: do not override 'Accept-Encoding' header if already present
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1242782 13f79535-47bb-0310-9956-ffa450edef68
2012-02-10 14:14:30 +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
Sebastian Bazley ca66db5ade Remove svn:executable prop
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1241167 13f79535-47bb-0310-9956-ffa450edef68
2012-02-06 20:40:12 +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 5e01ff0a88 Fixed clirr report config
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1240776 13f79535-47bb-0310-9956-ffa450edef68
2012-02-05 18:16:28 +00:00
Oleg Kalnichevski 5e95538a08 Updated HttpClient 4.2-beta1 release notes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1240775 13f79535-47bb-0310-9956-ffa450edef68
2012-02-05 18:16:15 +00:00
Oleg Kalnichevski 68b0243fdb Updated web site for HttpClient 4.2-beta1 release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1240774 13f79535-47bb-0310-9956-ffa450edef68
2012-02-05 18:15:58 +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 5e3626f656 Updated OSGi package
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1240722 13f79535-47bb-0310-9956-ffa450edef68
2012-02-05 13:18:18 +00:00
Oleg Kalnichevski 39117086b3 HTTPCLIENT-1160: Deprecated LayeredSchemeSocketFactory in favor of SchemeLayeredSocketFactory whose #createLayeredSocket() method takes HttpParams as an additional parameter
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1240721 13f79535-47bb-0310-9956-ffa450edef68
2012-02-05 13:18:02 +00:00
Oleg Kalnichevski 2737e5f066 Updated HttpClient tutorial with 4.2 API changes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1240534 13f79535-47bb-0310-9956-ffa450edef68
2012-02-04 16:30:30 +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 aab1b368d7 Added facility to execute requests asynchronously using fluent HC API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1239732 13f79535-47bb-0310-9956-ffa450edef68
2012-02-02 17:21:56 +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
Oleg Kalnichevski b1134f6533 Simplified site content and assembly generation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1239226 13f79535-47bb-0310-9956-ffa450edef68
2012-02-01 17:38:12 +00:00
Oleg Kalnichevski b6e69d03f9 A slightly better variable name for clirr comparision version
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1239225 13f79535-47bb-0310-9956-ffa450edef68
2012-02-01 17:37:47 +00:00
Oleg Kalnichevski 24b8a78846 Upgraded to HttpCore 4.2-beta1
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1239223 13f79535-47bb-0310-9956-ffa450edef68
2012-02-01 17:36:32 +00:00
Oleg Kalnichevski 64e56ef29c Added an option to initalize BASIC and DIGEST schemes in a particular challenge state
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1235752 13f79535-47bb-0310-9956-ffa450edef68
2012-01-25 14:17:37 +00:00
Oleg Kalnichevski 67d45c0d06 Updated Kerberos example
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1235751 13f79535-47bb-0310-9956-ffa450edef68
2012-01-25 14:16:29 +00:00
Oleg Kalnichevski 9867254c97 HTTPCLIENT-1156: Refactored NegotiateScheme into separate SPNegoScheme and KerberosScheme implementations; deprecated NegotiateScheme and related classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1233319 13f79535-47bb-0310-9956-ffa450edef68
2012-01-19 12:33:51 +00:00
Oleg Kalnichevski 74e1be5ca8 HTTPCLIENT-1159: HttpClientUtils - helper methods to release resources held by HttpClient / HttpResponse after use
Contributed by Karthik K <oss.akk at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1233307 13f79535-47bb-0310-9956-ffa450edef68
2012-01-19 12:15:48 +00:00
Oleg Kalnichevski fcf77abb6c HTTPCLIENT-1158: fixed typo
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1232915 13f79535-47bb-0310-9956-ffa450edef68
2012-01-18 14:46:25 +00:00
Oleg Kalnichevski 987593b260 Updated NOTICE
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1232913 13f79535-47bb-0310-9956-ffa450edef68
2012-01-18 14:45:33 +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
Oleg Kalnichevski 3b8726022b Added convenience #create methods to UrlEncodedFormEntity
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1231075 13f79535-47bb-0310-9956-ffa450edef68
2012-01-13 14:05:24 +00:00
Oleg Kalnichevski 76762ca4ed Fixed Java 1.5 compatibility issue
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1230515 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 13:19:02 +00:00
Jonathan Moore 58036bc594 HTTPCLIENT-1157: MemcachedHttpCacheStorage should throw IOExceptions instead of RuntimeExceptions.
Contributed by James Miller <jamesmiller01 at gmail dot com>.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1230174 13f79535-47bb-0310-9956-ffa450edef68
2012-01-11 18:12:50 +00:00
Jonathan Moore e78b50d6de HTTPCLIENT-1152: Also apply type check before byte[] cast on memcached retrieval.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1229203 13f79535-47bb-0310-9956-ffa450edef68
2012-01-09 15:27:04 +00:00
Jonathan Moore ae11627878 HTTPCLIENT-1152: Added credit to Rajika Kumarasiri <rajika at wso2 dot com>
to RELEASE_NOTES.txt for 4.2 alpha2.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1229176 13f79535-47bb-0310-9956-ffa450edef68
2012-01-09 14:38:17 +00:00
Jonathan Moore 9f0bc2474f HTTPCLIENT-1152: Log a WARN-level message if memcached gives us back something other
than a byte[].


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1229172 13f79535-47bb-0310-9956-ffa450edef68
2012-01-09 14:33:08 +00:00
Jonathan Moore a6fe2177be HTTPCLIENT-1152: MemcachedHttpCacheStorage should verify class of returned
object before casting. Contributed by Rajika Kumarasiri <rajika at wso2 dot com>.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1229169 13f79535-47bb-0310-9956-ffa450edef68
2012-01-09 14:28:38 +00:00
Oleg Kalnichevski 46bcf3acf7 Replaced deprecated method calls
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1228888 13f79535-47bb-0310-9956-ffa450edef68
2012-01-08 16:34:06 +00:00
Oleg Kalnichevski 8f767628cf HTTPCLIENT-1155: CachingHttpClient fails to ensure that the response content gets fully consumed when using a ResponseHandler, which can potentially lead to connection leaks
Contributed by James Miller <jamesmiller01 at gmail dot com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1222845 13f79535-47bb-0310-9956-ffa450edef68
2011-12-23 20:59:54 +00:00
Oleg Kalnichevski cb6254fea6 Rewrote test case for HTTPCLIENT-1147: removed dependency on an external resource; removed hard-coded cache directory location
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1222843 13f79535-47bb-0310-9956-ffa450edef68
2011-12-23 20:57:11 +00:00
Oleg Kalnichevski a6db7c5185 HTTPCLIENT-1147: When HttpClient-Cache cannot open cache file, should act like miss
Contributed by Joe Campbell <joseph.r.campbell at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1209503 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 14:15:11 +00:00
Oleg Kalnichevski 5b89c1097f HTTPCLIENT-1144: Caching client has a class for common headers that was not being used consistently in the code
Contributed by Joe Campbell <joseph.r.campbell at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1209502 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 14:13:52 +00:00
Sebastian Bazley c4ab5838f6 Fix indentation (no code change)
First indent was 3 chars; looks like a single space was stripped from the start of all lines at some stage

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1206925 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 23:56:03 +00:00
Sebastian Bazley 0771f14ea4 Remove un-thrown exceptions
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1206923 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 23:44:09 +00:00
Sebastian Bazley c3a8df4016 Missing @Override; indicate that param is long
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1206739 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 15:37:09 +00:00
Sebastian Bazley 12a3dbebeb Restore original logic - contentLen = 0 was outside null check
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1206736 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 15:29:32 +00:00
Sebastian Bazley 8f91869343 Not sure that instream can be null, but assuming it can, there's no point entering the try block if it's null. This avoids NPE warning
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1206734 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 15:28:28 +00:00
Sebastian Bazley 6921a32fa6 Not sure that instream can be null, but assuming it can, there's no point entering the try block if it's null. This avoids NPE warning
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1206731 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 15:25:53 +00:00
Sebastian Bazley d7ce4582e2 Unnecessary ;
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1206729 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 15:11:32 +00:00
Sebastian Bazley 5470d0746b setFailureCount is not thread-safe, but is not used AFAICT so remove it
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1206727 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 14:56:02 +00:00
Jonathan Moore fceb87e3bc HTTPCLIENT-1143: Added ASL header to ConsumableInputStream test class.
Credited James Miller in Release Notes.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1198941 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 21:13:45 +00:00
Jonathan Moore c8aafc5c1a HTTPCLIENT-1143: CachingHttpClient leaks connections with stale-if-error.
Bugfix from James Miller <jamesmiller01 at gmail dot com>.



git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1198939 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 21:09:41 +00:00
Jonathan Moore c13bbbdd17 HTTPCLIENT-1137: Added credit for Alin Vasile for his patch to the RELEASE_NOTES.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1197718 13f79535-47bb-0310-9956-ffa450edef68
2011-11-04 19:11:31 +00:00
Jonathan Moore d19daa3dcd HTTPCLIENT-1137: The values for the Via header are created by httpclient-cache
for each cached and backend request. Committing patch by alinachegalati at yahoo dot com.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1197713 13f79535-47bb-0310-9956-ffa450edef68
2011-11-04 19:07:52 +00:00