Commit Graph

3070 Commits

Author SHA1 Message Date
Oleg Kalnichevski db01dbf4b1 Upgraded Memcached to version 2.12.3 2017-10-19 15:52:50 +02:00
Oleg Kalnichevski 26024a3b8e Upgraded Ehcache to version 3.4.0 2017-10-19 15:52:30 +02:00
Oleg Kalnichevski f215fdcd32 Factored out logic shared by Memcached and Ehcache implementations into an abstract base class 2017-10-19 15:36:11 +02:00
Oleg Kalnichevski f70c974241 Renamed class (no functional changes) 2017-10-16 23:41:40 +02:00
Oleg Kalnichevski fc41f47ad3 CacheInvalidator to use URI class instead of URL 2017-10-16 23:39:11 +02:00
Oleg Kalnichevski 935573104c Use stable (HttpRequest implementation independent) implementation of key generation 2017-10-16 23:01:13 +02:00
Oleg Kalnichevski 0aa4b8183b Added HTTP cache integration tests 2017-10-16 23:00:19 +02:00
Oleg Kalnichevski 74ed4dfebf Revised HTTP cache debug logging 2017-10-16 23:00:19 +02:00
Oleg Kalnichevski 30320fe2f4 Fixed NPE in case of a missing Max-Forwards header 2017-10-16 23:00:19 +02:00
Oleg Kalnichevski 0c862432d8 Removed unstable (due to a race condition) integration test 2017-10-16 23:00:19 +02:00
Oleg Kalnichevski 45f1657907 HTTPCLIENT-1827: Builder for CachingHttpAsyncClient instances with full support for streamed HTTP exchanges 2017-10-16 22:59:26 +02:00
Oleg Kalnichevski 849d1a138e HTTPCLIENT-1827: Asynchronous cache exec interceptor with caching support for streamed HTTP exchanges; removed incomplete response checks as response integrity is enforced in the transport layer; async cache re-validation is currently broken in the classic and unsuppoted in the async implementations 2017-10-16 22:51:32 +02:00
Oleg Kalnichevski 6076f5542b Fixed regression in cache validity logic for file backed cache entries 2017-10-13 13:22:23 +02:00
Oleg Kalnichevski bb96781e5b Revised HTTP cache exception handling 2017-10-12 15:42:17 +02:00
Oleg Kalnichevski b24aa01866 Upgraded parent POM to version 9; Removed explicit plugin version declaration (should be inherited from the parent POM) 2017-10-04 14:04:17 +02:00
Oleg Kalnichevski 212d7a2e83 Reduced dependency on classic (blocking) I/O APIs in CacheExec 2017-10-03 10:41:15 +02:00
Oleg Kalnichevski e71d8fac88 Removed IOUtils as redundant; try-with-resources for resource management 2017-10-03 09:43:03 +02:00
Oleg Kalnichevski 1d66105c3a Removed dependency on classic (blocking) I/O APIs from CachedHttpResponseGenerator 2017-10-02 22:00:38 +02:00
Oleg Kalnichevski 0226eaff6d Removed dependency on classic (blocking) I/O APIs from RequestProtocolCompliance and ResponseProtocolCompliance; removed compliance checks unrelated to HTTP caching enforced by protocol handlers 2017-10-02 17:34:40 +02:00
Oleg Kalnichevski d75c5c2be2 Removed dependency on classic (blocking) I/O APIs from ConditionalRequestBuilder 2017-10-02 17:34:40 +02:00
Oleg Kalnichevski 20f4290d01 Removed dependency on classic (blocking) I/O APIs from HttpCache 2017-10-02 17:34:40 +02:00
Oleg Kalnichevski 73c67f221d Redesign of HTTP cache resource APIs 2017-10-02 17:33:41 +02:00
Oleg Kalnichevski e2a464084c Removed deprecated code 2017-10-01 11:42:51 +02:00
Oleg Kalnichevski f959d44ec7 Deprecated Content-Transfer-Encoding field in MIME body parts per RFC 7578, section 4.7 2017-09-30 23:51:52 +02:00
Ioannis Sermetziadis a424709d89 HTTPCLIENT-293 Implemented the percent encoding of the filename parameter of the Content-Disposition header based on RFC7578 sections 2 and 4.2. In the new MultipartForm implementation I included a PercentCodec that performs encoding/decoding to/from the percent encoding as described in RFC7578 and RFC3986. 2017-09-30 23:51:43 +02:00
Ioannis Sermetziadis 9560aef476 HTTPCLIENT-293 Refactored code in order to support multipart header field parameters in the data model and postpone the formatting and encoding of the parameters until the moment written into a stream, which is essential in order to avoid multiple encodings of the same value. 2017-09-30 23:51:22 +02:00
Oleg Kalnichevski 9ac5808bdb Added MessageCopier and implementations for HttpRequest and ClassicHttpRequest messages; removed message copy methods from ExecSupport 2017-09-30 23:00:45 +02:00
Oleg Kalnichevski e8972624ac Redesign of SimpleHttpRequest / SimpleHttpResponse APIs 2017-09-29 17:02:41 +02:00
Oleg Kalnichevski 5203c66928 Corrected configuration of the 'expect-continue' handshake in async
client authentication tests
2017-09-29 17:02:41 +02:00
Gary Gregory 18e56cc6c2 Drop oraclejdk7 from the Travis-CI build. 2017-09-27 09:43:48 -06:00
Andy Klimczak 26a253fcb4 Fix typo in HttpClients.java Javadoc closes #83. 2017-09-06 14:55:34 -06:00
Oleg Kalnichevski d2b3385ba2 Redesign of classic and asynchronous connection manager APIs 2017-09-06 17:44:36 +02:00
Gary Gregory a65c8e9e1a Comment. 2017-09-05 09:45:56 -06:00
Gary Gregory 22902593e7 Order parent POM ref GID and AID elements. Adjust relative path for
current parent AID name. AID and folder name must match.
2017-09-03 14:28:45 -06:00
Oleg Kalnichevski 6d17126cbf Moved classes and renamed packages (no functional changes) 2017-09-02 17:27:30 +02:00
Oleg Kalnichevski b4e0611b05 Consistent timeout settings in integration tests 2017-09-02 16:52:24 +02:00
Oleg Kalnichevski dcc09e92e0 Logging improvements 2017-09-01 20:30:10 +02:00
Oleg Kalnichevski b58e7d46d7 Upgraded HttpCore to version 5.0-alpha4 2017-09-01 20:29:58 +02:00
Carter Kozak 272ea1fa83 Fixed NPE PoolingAsyncClientConnectionManager
PoolingAsyncClientConnectionManager.validateAfterInactivity causes
an NPE when PoolEntries are initially created with no Connection.

Added logic to avoid checking the connection on every pool
checkout similar to the blocking pool.

Added an connection.isOpen check to http1.x connections leased
from the pool, although I'm unsure if it's at all effective.

Closes PR #82
2017-08-09 20:28:18 +02:00
Carter Kozak a10967a427 BasicCookieStore no longer synchronizes on reads
BasicCookieStore uses a ReentrantReadWriteLock to avoid
synchronization on getCookies/toString while maintaining
thread safety.

Closes PR #81
2017-08-08 23:07:52 +02:00
Tomas Celaya 9efcba8730 [HTTPCLIENT-1865] DefaultServiceUnavailableRetryStrategy does not
respect HttpEntity#isRepeatable.
2017-08-01 19:25:17 +02:00
Gary Gregory f2146cab62 [HTTPCLIENT-1858] Clone some code from Log4j 2 to cache a StringBuilder
in a ThreadLocal. Update to use the StringBuilder's capacity instead of
its length to measure upper bound.
2017-08-01 19:12:15 +02:00
Jay Modi fe6b90a8c6 [HTTPASYNC-124] Add doPrivileged blocks to async client and connection
manager builders.
2017-08-01 19:12:02 +02:00
Oleg Kalnichevski 643ea6c3e0 Fixed javadocs 2017-07-16 23:01:36 +02:00
Gary Gregory 527dce78a7 [HTTPCLIENT-1858] Clone some code from Log4j 2 to cache a StringBuilder in a ThreadLocal. 2017-07-16 22:42:16 +02:00
Sebb 49989d8044 EOL fixing 2017-07-16 22:41:46 +02:00
Gary Gregory c757f60bfd Update Log4j from 2.8 to 2.8.2. 2017-06-30 16:43:25 -07:00
Karl Wright 55fe0fb139 HTTPCLIENT-1859: Encode header name, filename appropriately 2017-06-22 09:51:27 -04:00
Oleg Kalnichevski 1cba813bf8 CredSSP scheme to throw SSLInitializationException in case of SSL context initialization failure instead of untyped RuntimeException 2017-05-29 20:21:57 +02:00
Oleg Kalnichevski a034a34db2 Line ending normalization 2017-05-29 20:08:10 +02:00