Commit Graph

2757 Commits

Author SHA1 Message Date
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
Oleg Kalnichevski 4f4576ec94 Use SSLInitializationException from HttpCore 2017-05-29 19:21:04 +02:00
Leandro Nunes 45b23c7e0a Avoid fetching the cached entity twice on cache hit.
Closes PR #79
https://github.com/apache/httpcomponents-client/pull/79
2017-05-24 20:42:57 +02:00
Leandro Nunes e07fd9abed Removing unnecessary checks for cache invalidation calls. 2017-05-19 12:16:40 +01:00
Pavol Loffay 4bd79fb3dd Allow to add exec interceptor as the first and the last
Closes PR #76
2017-05-18 09:27:58 +02:00
Oleg Kalnichevski b5b39efd72 Updated repository details in POM 2017-05-17 14:52:19 +02:00
Oleg Kalnichevski 8a1b96bfa7 Upgraded HttpClient version to 5.0-alpha3-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1794682 13f79535-47bb-0310-9956-ffa450edef68
2017-05-10 08:19:07 +00:00
Gary D. Gregory ace93bbbed No need for two (2) license headers.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1794478 13f79535-47bb-0310-9956-ffa450edef68
2017-05-08 22:55:38 +00:00
Gary D. Gregory 9050d81207 Javadoc: Close tag.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1794414 13f79535-47bb-0310-9956-ffa450edef68
2017-05-08 17:11:27 +00:00
Gary D. Gregory 07c74cd8b1 Better parameter name.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1794412 13f79535-47bb-0310-9956-ffa450edef68
2017-05-08 16:51:27 +00:00
Gary D. Gregory 4fa296bbfd Sort imports.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1794411 13f79535-47bb-0310-9956-ffa450edef68
2017-05-08 16:51:12 +00:00
Gary D. Gregory 07aea2cbb9 [HTTPCLIENT-1845]: Extract InputStreamFactory classes out of GzipDecompressingEntity and DeflateDecompressingEntity for reuse and to create less garbage.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1794410 13f79535-47bb-0310-9956-ffa450edef68
2017-05-08 16:50:54 +00:00
Gary D. Gregory 53bed5b13e Release notes tweaks for the upcoming release.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1794227 13f79535-47bb-0310-9956-ffa450edef68
2017-05-07 17:08:16 +00:00
Oleg Kalnichevski c5257a771d Javadoc fix
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1794203 13f79535-47bb-0310-9956-ffa450edef68
2017-05-07 13:36:35 +00:00