Commit Graph

107 Commits

Author SHA1 Message Date
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 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 20f4290d01 Removed dependency on classic (blocking) I/O APIs from HttpCache 2017-10-02 17:34:40 +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
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
Oleg Kalnichevski 6d17126cbf Moved classes and renamed packages (no functional changes) 2017-09-02 17:27:30 +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
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
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 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
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
Oleg Kalnichevski c7a52d51c0 Disable HTTP tunneling support until the problem with delineation of 200 status message in response to CONNECT method has been resolved in HttpCore
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1794172 13f79535-47bb-0310-9956-ffa450edef68
2017-05-06 18:30:44 +00:00
Oleg Kalnichevski 922a9ac545 Fixed processing of HTTP protocol version dependent request headers
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1794171 13f79535-47bb-0310-9956-ffa450edef68
2017-05-06 18:30:37 +00:00
Oleg Kalnichevski 5ae1cff8a2 Implemented connection routing for the async request exec chain
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1794170 13f79535-47bb-0310-9956-ffa450edef68
2017-05-06 18:30:25 +00:00
Oleg Kalnichevski ecf4e93842 Classic exec runtime to establish connection automatically if the connection endpoint is disconnected
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1794169 13f79535-47bb-0310-9956-ffa450edef68
2017-05-06 18:30:02 +00:00
Oleg Kalnichevski 196ee3363e HTTPCLIENT-1826: HttpAsyncClientBuilder to accept ThreadFactory attribute
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1793762 13f79535-47bb-0310-9956-ffa450edef68
2017-05-04 09:42:53 +00:00
Oleg Kalnichevski 28058b8f85 Upgraded Mockito dependency to version 2.7
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1793693 13f79535-47bb-0310-9956-ffa450edef68
2017-05-03 18:31:58 +00:00
Oleg Kalnichevski e8efaea53f Removed remaining JCL usage in the caching module. Cleaned up POM.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1793690 13f79535-47bb-0310-9956-ffa450edef68
2017-05-03 18:31:30 +00:00
Oleg Kalnichevski d5039137ca Improved protocol handling in the async request execution chain; implemented cookie processing and authentication handling
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1793567 13f79535-47bb-0310-9956-ffa450edef68
2017-05-02 18:22:59 +00:00
Oleg Kalnichevski d43ee7177b Refactored connection routing and protocol execution code in the classic exec chain
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1793325 13f79535-47bb-0310-9956-ffa450edef68
2017-05-01 13:06:48 +00:00
Oleg Kalnichevski bde89fee57 Fixed automatic content compression in classic exec chain
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1793324 13f79535-47bb-0310-9956-ffa450edef68
2017-05-01 13:04:26 +00:00
Oleg Kalnichevski b0cdc58b01 Initial implementation of the async request execution chain
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1793320 13f79535-47bb-0310-9956-ffa450edef68
2017-05-01 12:39:16 +00:00
Oleg Kalnichevski da5797f470 Moved classic HttpClient and HC fluent integration tests to httpclient-testing module
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1793319 13f79535-47bb-0310-9956-ffa450edef68
2017-05-01 12:38:41 +00:00
Oleg Kalnichevski 25c6afed7c Initial redesign of the classic request execution chain
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1793308 13f79535-47bb-0310-9956-ffa450edef68
2017-05-01 11:11:09 +00:00
Oleg Kalnichevski 04594b97a9 Upgraded HttpCore to version 5.0-alpha3; fixed HttpCore API usage
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1793305 13f79535-47bb-0310-9956-ffa450edef68
2017-05-01 10:47:09 +00:00
Gary D. Gregory e1c5e5922a [HTTPCLIENT-1836] DefaultHostnameVerifier#getSubjectAltNames(X509Certificate) throws java.lang.ClassCastException.
Contributed by Gary Gregory <ggregory at apache.org>, Ilian Iliev <ilian_iliev at yahoo.com>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1789189 13f79535-47bb-0310-9956-ffa450edef68
2017-03-28 18:53:43 +00:00
Gary D. Gregory ab46a44871 Format tweak.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1789172 13f79535-47bb-0310-9956-ffa450edef68
2017-03-28 15:58:28 +00:00
Gary D. Gregory 192acfde4d Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1789170 13f79535-47bb-0310-9956-ffa450edef68
2017-03-28 15:54:38 +00:00