Carter Kozak
84bd290954
HTTPCLIENT-2095: Use slf4j interpolation instead of string concatenation where possible ( #232 )
2020-07-02 17:51:43 +02:00
Gary Gregory
d1c4199db3
No need to use the type name of an input arg in the method name. ( #208 )
...
* No need to use the type name of an input arg in the method name.
* Do not use input type names in method names.
2020-01-29 19:20:05 -05:00
Michael Osipov
26991b8059
HTTPCLIENT-2036: CacheValidityPolicy should use TimeValue
...
This closes #201
2020-01-10 11:01:45 +01:00
Ryan Schmitt
3aec96d3db
Upgraded HttpCore to version 5.0-beta11
2020-01-07 15:41:18 +01:00
Scott Gifford
a8fc99f4a2
HttpByteArrayCacheEntrySerializer minor code cleanup for HTTPCORE-615.
...
MemcachedCacheEntryHttp inner class NoAgeCacheValidityPolicy should be static.
Add missing javadoc @param and @return entries to MemcachedCacheEntryHttp.
Remove extra blank lines.
2020-01-07 09:30:02 +01:00
Gary Gregory
634886ab61
[HTTPCLIENT-2046] Rename AuthSchemes enum to StandardAuthScheme final class
...
Modeled after StandardCharsets, the new class indicates a non-exhaustive
list of standard auth schemes by name supported by the HttpClient. The
previous enum suffered from two issues:
* it was exhaustive implying that no more auth schemes can be supported
* its sole purpose was to contain an id for the declared auth scheme;
the enum values theirselves were never used directly
This closes #196
2020-01-01 21:57:53 +01:00
Scott Gifford
f765a81b31
HTTPCORE-615: Implement HTTP-based cache serializer-deserializer. ( #192 )
...
HTTPCORE-615: Implement HTTP-based cache serializer-deserializer.
2019-12-30 10:57:58 +01:00
Scott Gifford
40173ca071
Fix bug in ResourceIOException where message was not passed to super.
2019-12-30 10:52:26 +01:00
Michael Osipov
167dbc7576
Make consistent use of AuthSchemes#id
...
This closes #189
2019-12-27 12:26:34 +01:00
Michael Osipov
a5dac4c6f2
HTTPCLIENT-2038: CacheConfig should use TimeValue
2019-12-15 12:45:14 +01:00
Michael Osipov
ebccd5d225
Use String#isEmpty()
2019-12-15 11:49:26 +01:00
Michael Osipov
810e56b419
Don't explicitly declare runtime exceptions
2019-12-15 11:36:31 +01:00
Michael Osipov
83bc2c497d
ExponentialBackOffSchedulingStrategy should use TimeValue internally
2019-12-15 11:36:31 +01:00
Michael Osipov
846a25561c
Use language-agnotic Locale.ROOT
2019-12-15 11:36:30 +01:00
Michael Osipov
3d502c9ac4
Correct Javadoc
2019-12-15 11:28:11 +01:00
Michael Osipov
434d5e5046
Fix formatting
2019-12-15 11:28:11 +01:00
Michael Osipov
bca9a873a5
Use consistent variable names
2019-12-15 11:28:08 +01:00
Oleg Kalnichevski
a1c63d46df
Marked caching async clients as experimental (no functional changes)
2019-12-12 11:02:56 +01:00
Michael Osipov
6cff260eff
HTTPCLIENT-2031: Don't use plural names for enums
...
This closes #180
2019-12-10 10:50:28 +01:00
Olof Larsson
e1f48e788d
HTTPCLIENT-2023: Allow nested arrays and all primitive types in DefaultHttpCacheEntrySerializer
2019-11-08 10:40:01 +01:00
Oleg Kalnichevski
4d3b3ee2a3
Removed Base64 decoding from TestByteArrayCacheEntrySerializer
2019-10-23 17:24:56 +02:00
Kirill Usov
b717fde289
Information response (1xx) processing
2019-07-14 16:11:16 +02:00
Oleg Kalnichevski
669020ccac
Renamed Http2 to H2 (no functional changes)
2019-07-14 15:50:44 +02:00
Oleg Kalnichevski
8e42474a6c
Deprecated HttpClient functionality now provided out of HttpCore
2019-07-14 15:48:21 +02:00
Gary Gregory
81c1bc4dc3
Clean up.
2019-05-03 10:28:40 -04:00
Artem Smotrakov
adf8691dcd
HTTPCLIENT-1976: Unsafe deserialization in DefaultHttpCacheEntrySerializer
2019-04-02 14:07:27 +02:00
Ryan Schmitt
f8653a011a
Upgrade HttpCore to version 5.0-beta7
2019-02-27 14:36:53 -08:00
Raymond, Jayson
e6ca403d29
Some well known proxies respond with Content-Length=0, when returning 304. For robustness, always use the cached entity's content length, as modern browsers do.
2019-02-06 07:21:09 -08:00
Oleg Kalnichevski
b452006756
Upgraded HttpCore to version 5.0-beta6
2018-12-04 15:49:56 +01:00
Gary Gregory
3e5df337c5
Update tests from Easymock 3.2 to 3.6.
2018-10-22 16:55:19 -06:00
Oleg Kalnichevski
ab7be3fd53
Upgraded HttpCore to version 5.0-beta5
2018-10-21 13:24:49 +02:00
Oleg Kalnichevski
37c8006472
Javadocs; renamed some methods (no functional changes)
2018-10-17 23:40:12 +02:00
Gary Gregory
8e486b356e
Reuse our UriScheme enum instead of magic strings.
2018-10-03 09:25:17 -06:00
Oleg Kalnichevski
cbe00beb56
Removed duplicate class (no functional changes)
2018-08-30 11:36:46 +02:00
Oleg Kalnichevski
1614c25168
Upgraded HttpCore dependency to version 5.0-beta3
2018-08-30 10:54:54 +02:00
Gary Gregory
3aa9c1fd33
- Always use blocks
...
- Add missing serial version ID (default 1L)
- Camel-case names.
- Don't nest in else clause unnecessarily.
- Remove declared exceptions that are not thrown (but don't break BC.)
- Remove redundant superinterface
- Access static methods directly
- Better local var names.
2018-08-14 20:56:08 +02:00
Gary Gregory
769e9fab3f
Add missing @Override annotations.
2018-08-05 11:40:07 -06:00
Gary Gregory
c3bdc8913f
Refactor common code in a new Closer utility class.
2018-08-04 23:55:41 +02:00
Gary Gregory
8d87cf515b
Static methods should be accessed directly. Remove redundant type
...
arguments. Remove exceptions not thrown from method signatures. Add
missing @Override. Remove unnecessary semicolons. Don't nest
unnecessarily.
2018-08-04 10:40:01 -06:00
Sudheera Palihakkara
5f2ad23ab3
HTTPCLIENT-1690: Avoid updating the cache entry with Content-Encoding headers too. (missing piece from last commit). Updated the test case
2018-01-15 13:03:57 +01:00
Sudheera Palihakkara
a3bcad3989
HTTPCLIENT-1690: Avoid merging Content-Encoding headers coming with 304 status to cache entry
2018-01-15 10:16:35 +01:00
Oleg Kalnichevski
695f353b43
Re-use concurrent primitives from HttpCore
2018-01-12 14:20:10 +01:00
Oleg Kalnichevski
dee32207e3
Upgraded HttpCore dependency to version 5.0-beta2
2018-01-12 14:06:08 +01:00
Oleg Kalnichevski
eb71f45ee5
SLF4J logging facade
2018-01-10 13:07:37 +01:00
Oleg Kalnichevski
16147b1852
Completed rewrite of re-validation code in the classic caching exec interceptor; added re-validation to the async caching exec interceptor
2018-01-08 11:13:17 +01:00
Oleg Kalnichevski
f16ac3ec3b
Better method name (no functional changes)
2018-01-07 13:59:28 +01:00
Oleg Kalnichevski
7cf4240b3f
Redesigned cache entry re-validation logic; added classic and async implementations of cache re-validators
2018-01-07 12:48:59 +01:00
Oleg Kalnichevski
79b76030fd
Replaced FailureCache by generic ConcurrentCountMap
2018-01-05 15:09:05 +01:00
Oleg Kalnichevski
0561bacc66
Decoupled SchedulingStrategy and its implementations from HTTP cache specific logic
2018-01-05 12:29:14 +01:00
Oleg Kalnichevski
eb1cab46e6
HTTPCLIENT-1384: clean up of HttpCacheInvalidator and HttpAsyncCacheInvalidator APIs
2018-01-02 13:41:31 +01:00