Commit 559e770
authored
Update Apache HttpClient 5 to use recommended APIs and remove deprecated code (#6312)
* Add initial empty module for Apache5x for seting up package (#6075)
* Add initial module for Apache5x for seting up package
* Add based on new module checklist
* Baseline or Copy all the ApacheSDKHttpClient classes to newly added Apache5SDKHttpClient (#6088)
* Add initial module for Apache5x for seting up package
* Add based on new module checklist
* Baseline all the classes from Apache4 SDK client to the new Apache5 module
* Phase 2 , getting Apache 5 compilation and Junit ready along with clearing Checkstyles and spotbug issues (#6100)
* Phase 2 , getting Apache 5 compilation and Junit ready along with clearing Checkstyles and spotbug issues
* Handle comments from review
* Handle comments from Zoe
* Update the snap shot
* Fix HTTP authentication retry failures by improving RepeatableInputStreamRequestEntity repeatability (#6132)
* Fix HTTP authentication retry failures by improving RepeatableInputStreamRequestEntity repeatability
* Upated test cases
* Handled comments
* Updated snap shot after merge from master
* Revert "Updated snap shot after merge from master"
This reverts commit 64f7d33.
* Updated snap shot after merge from master
* Fix architecture test failures for apache5.x (#6140)
* Fix architecture test failures for apache5.x
* Checkstyle issues
* Updated snap shot after merge from master
* Use reference of PoolingHttpClientConnectionManager instead of HttpClientConnectionManager for Connection Manager (#6147)
* Fix architecture test failures for apache5.x
* Checkstyle issues
* Update to use PoolingHttpClientConnectionManager class reference that is implementation of HttpClientConnectionManager
* Fix Apache5 HTTP client retry failures with non-resettable streams (#6154)
* Fix architecture test failures for apache5.x
* Checkstyle issues
* Update to use PoolingHttpClientConnectionManager class reference that is implementation of HttpClientConnectionManager
* Fix stream reset failure in RepeatableInputStreamRequestEntity by storing content reference to avoid multiple ContentStreamProvider.newStream() calls that cause IOException when retrying requests with non-resettable streams
* writeTo_ConcurrentWrites_HandlesCorrectly no longer needed since even Apache 4.x doesnot suports this
* Merge PR#6165 #6165
* Disable Client based retries and define httpcore5 httpclient5 in .brazil.json (#6191)
* Fix architecture test failures for apache5.x
* Checkstyle issues
* Update to use PoolingHttpClientConnectionManager class reference that is implementation of HttpClientConnectionManager
* Fix stream reset failure in RepeatableInputStreamRequestEntity by storing content reference to avoid multiple ContentStreamProvider.newStream() calls that cause IOException when retrying requests with non-resettable streams
* writeTo_ConcurrentWrites_HandlesCorrectly no longer needed since even Apache 4.x doesnot suports this
* Fix connectionPoolingWorks by setting skipping setConnectionTimeToLive is value is set to 0 since 0 is treated as Infinite timeToLive in Sdk and Apache 4.x but treated as immediate closeConnection in apache 5.x
* disableAutomaticRetries in Apache 5.x since SDK handles retries , also define Apache5 dependencies in .brazil.json
* Added Test case for Async , handled review ocmments
* Update snapshots
* Do not buffer the Response stream using BufferedHttpEntity (#6200)
* Fix architecture test failures for apache5.x
* Checkstyle issues
* Update to use PoolingHttpClientConnectionManager class reference that is implementation of HttpClientConnectionManager
* Fix stream reset failure in RepeatableInputStreamRequestEntity by storing content reference to avoid multiple ContentStreamProvider.newStream() calls that cause IOException when retrying requests with non-resettable streams
* writeTo_ConcurrentWrites_HandlesCorrectly no longer needed since even Apache 4.x doesnot suports this
* Fix connectionPoolingWorks by setting skipping setConnectionTimeToLive is value is set to 0 since 0 is treated as Infinite timeToLive in Sdk and Apache 4.x but treated as immediate closeConnection in apache 5.x
* disableAutomaticRetries in Apache 5.x since SDK handles retries , also define Apache5 dependencies in .brazil.json
* Added Test case for Async , handled review ocmments
* Donot do buffer the response using BufferedHttpEntity since it might cause memory issue, this behaviour is same as Apache4.x
* Fix compilation issues
* Fix checkstyle issues
* Remove test which are specific to apache http
* Merge from master
* Apache5x SDkBenhmark Tests (#6206)
* Fix architecture test failures for apache5.x
* Checkstyle issues
* Update to use PoolingHttpClientConnectionManager class reference that is implementation of HttpClientConnectionManager
* Fix stream reset failure in RepeatableInputStreamRequestEntity by storing content reference to avoid multiple ContentStreamProvider.newStream() calls that cause IOException when retrying requests with non-resettable streams
* writeTo_ConcurrentWrites_HandlesCorrectly no longer needed since even Apache 4.x doesnot suports this
* Fix connectionPoolingWorks by setting skipping setConnectionTimeToLive is value is set to 0 since 0 is treated as Infinite timeToLive in Sdk and Apache 4.x but treated as immediate closeConnection in apache 5.x
* disableAutomaticRetries in Apache 5.x since SDK handles retries , also define Apache5 dependencies in .brazil.json
* Added Test case for Async , handled review ocmments
* Donot do buffer the response using BufferedHttpEntity since it might cause memory issue, this behaviour is same as Apache4.x
* Fix compilation issues
* Fix checkstyle issues
* Remove test which are specific to apache http
* Add benchmark for Apache5 and add Streaming Api test cases
* Clean up unused APIs and add test to make sure it can be handled with alternatives (#6211)
* Clean up unused APIs and add test to make sure it can be handled with alternatives
* Added NTCredentials to keep backward compatibilty with Apache4.x
* Upgrade Apache5 org.apache.httpcomponents.client5 to latest available version (#6214)
* Fix architecture test failures for apache5.x
* Checkstyle issues
* Update to use PoolingHttpClientConnectionManager class reference that is implementation of HttpClientConnectionManager
* Fix stream reset failure in RepeatableInputStreamRequestEntity by storing content reference to avoid multiple ContentStreamProvider.newStream() calls that cause IOException when retrying requests with non-resettable streams
* writeTo_ConcurrentWrites_HandlesCorrectly no longer needed since even Apache 4.x doesnot suports this
* Fix connectionPoolingWorks by setting skipping setConnectionTimeToLive is value is set to 0 since 0 is treated as Infinite timeToLive in Sdk and Apache 4.x but treated as immediate closeConnection in apache 5.x
* disableAutomaticRetries in Apache 5.x since SDK handles retries , also define Apache5 dependencies in .brazil.json
* Added Test case for Async , handled review ocmments
* Donot do buffer the response using BufferedHttpEntity since it might cause memory issue, this behaviour is same as Apache4.x
* Fix compilation issues
* Fix checkstyle issues
* Remove test which are specific to apache http
* Add benchmark for Apache5 and add Streaming Api test cases
* Update Apache5 to 5.5
* Preview API annotation added for Public APIs and TODOs addressed (#6215)
* Fix architecture test failures for apache5.x
* Checkstyle issues
* Update to use PoolingHttpClientConnectionManager class reference that is implementation of HttpClientConnectionManager
* Fix stream reset failure in RepeatableInputStreamRequestEntity by storing content reference to avoid multiple ContentStreamProvider.newStream() calls that cause IOException when retrying requests with non-resettable streams
* writeTo_ConcurrentWrites_HandlesCorrectly no longer needed since even Apache 4.x doesnot suports this
* Fix connectionPoolingWorks by setting skipping setConnectionTimeToLive is value is set to 0 since 0 is treated as Infinite timeToLive in Sdk and Apache 4.x but treated as immediate closeConnection in apache 5.x
* disableAutomaticRetries in Apache 5.x since SDK handles retries , also define Apache5 dependencies in .brazil.json
* Added Test case for Async , handled review ocmments
* Donot do buffer the response using BufferedHttpEntity since it might cause memory issue, this behaviour is same as Apache4.x
* Fix compilation issues
* Fix checkstyle issues
* Remove test which are specific to apache http
* Add benchmark for Apache5 and add Streaming Api test cases
* Update Apache5 to 5.5
* Preview ready , addressing open TODOs
* Added PublicApi since checkstyle was failing
* Updated the snapshot
* Updated thr Brazil package nma e to have preview as suffix
* Updated Version as -PREVIEW to release apache5 as preview release (#6219)
* Updated Version as -PREVIEW
* japi cmp needs to be disables since this is a new version and we dont have old version to compare
* Handled Surface API review comments (#6224)
* Handled Surface API review comments
* Added a single test for localaddress , handled review comments
* Removing internal package name as -preview after internal discussion
* Fix transient text case failures
* update pom.xml for apache5.x
* Handled commed for merge to master PR 6220 (#6240)
* Handled Surface API review comments
* Added a single test for localaddress , handled review comments
* Removing internal package name as -preview after internal discussion
* Fix transient text case failures
* Handled comment for merge to master PR for apache 5.x
* Added change logs
* Review comment
* Handled Review comments
* Move connection timeout configuration from RequestConfig to ConnectionConfig in Apache HttpClient 5 (#6293)
* Replacing deprecated API like connectionTimeout on RequestConfig and passing it via defaultconnectionconfigs
* Handle review comments
* Replace httpclient.execute call with httpclient.executeOpen as mentioned in deprecation notes of httpclient.execute (#6298)
* Replacing deprecated API like connectionTimeout on RequestConfig and passing it via defaultconnectionconfigs
* Handle review comments
* replace httpclient.execute call with httpclient.executeOpen as mentioned in deprecation notes of httpclient.execute
* nit updates
* fixed sonar quebe issues
* Replace deprecated SSLConnectionSocketFactory with recommended API (#6281)
* Replace deprecated SSLConnectionSocketFactory with recommended API
* Fixed checkstyle issues
* Changed name tlsSocketStrategy on builder
* Removed warning log
* added more test cases
* updated after review
* Added ConnectionSocketFactory to Apache5Client builder same as Apache4
* handled PR comments
* Removed unused classes after moving to SSL sockets
* Added change logs
* removed old change logs
* remove unused imports
* inermittent port used in wiremock fixed
* update change logs1 parent 2800f91 commit 559e770
File tree
20 files changed
+378
-449
lines changed- .changes/next-release
- http-clients/apache5-client/src
- main/java/software/amazon/awssdk/http/apache5
- internal
- conn
- impl
- net
- utils
- test/java/software/amazon/awssdk/http/apache5
- internal
- conn
- impl
20 files changed
+378
-449
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 57 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | | - | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| 77 | + | |
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
| |||
285 | 290 | | |
286 | 291 | | |
287 | 292 | | |
288 | | - | |
289 | | - | |
| 293 | + | |
| 294 | + | |
290 | 295 | | |
291 | 296 | | |
292 | 297 | | |
293 | 298 | | |
294 | 299 | | |
295 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
296 | 312 | | |
297 | 313 | | |
298 | 314 | | |
| |||
355 | 371 | | |
356 | 372 | | |
357 | 373 | | |
358 | | - | |
359 | 374 | | |
360 | 375 | | |
361 | 376 | | |
| |||
464 | 479 | | |
465 | 480 | | |
466 | 481 | | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
471 | 489 | | |
472 | | - | |
| 490 | + | |
473 | 491 | | |
474 | 492 | | |
475 | 493 | | |
| |||
527 | 545 | | |
528 | 546 | | |
529 | 547 | | |
530 | | - | |
| 548 | + | |
531 | 549 | | |
532 | 550 | | |
533 | 551 | | |
| |||
649 | 667 | | |
650 | 668 | | |
651 | 669 | | |
652 | | - | |
653 | | - | |
| 670 | + | |
| 671 | + | |
654 | 672 | | |
655 | 673 | | |
656 | 674 | | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | 675 | | |
662 | 676 | | |
663 | 677 | | |
| |||
731 | 745 | | |
732 | 746 | | |
733 | 747 | | |
734 | | - | |
735 | | - | |
736 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
737 | 751 | | |
738 | 752 | | |
739 | 753 | | |
740 | | - | |
| 754 | + | |
741 | 755 | | |
742 | 756 | | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | 757 | | |
749 | 758 | | |
750 | 759 | | |
| 760 | + | |
751 | 761 | | |
752 | 762 | | |
753 | 763 | | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
759 | 786 | | |
760 | 787 | | |
761 | 788 | | |
| |||
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | | - | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
| |||
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 45 | | |
52 | 46 | | |
53 | 47 | | |
| |||
73 | 67 | | |
74 | 68 | | |
75 | 69 | | |
76 | | - | |
77 | 70 | | |
78 | 71 | | |
79 | 72 | | |
| |||
86 | 79 | | |
87 | 80 | | |
88 | 81 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 82 | | |
95 | 83 | | |
96 | 84 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
Lines changed: 17 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | | - | |
| 24 | + | |
27 | 25 | | |
28 | | - | |
29 | 26 | | |
30 | | - | |
| 27 | + | |
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
34 | | - | |
| 31 | + | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
42 | | - | |
| 39 | + | |
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
47 | | - | |
| 44 | + | |
| 45 | + | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
61 | 58 | | |
62 | | - | |
63 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
64 | 63 | | |
| 64 | + | |
65 | 65 | | |
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
0 commit comments