-
Notifications
You must be signed in to change notification settings - Fork 932
Update Java docs for Apache Clients #6299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,14 +101,29 @@ | |
import software.amazon.awssdk.utils.Validate; | ||
|
||
/** | ||
* An implementation of {@link SdkHttpClient} that uses Apache5 HTTP client to communicate with the service. This is the most | ||
* powerful synchronous client that adds an extra dependency and additional startup latency in exchange for more functionality, | ||
* like support for HTTP proxies. | ||
* An implementation of {@link SdkHttpClient} that uses Apache HttpClient 5.x to communicate with the service. This is a | ||
* full-featured synchronous client that adds an extra dependency and higher startup latency compared to | ||
* <a href="https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/http-configuration-url.html">UrlConnectionHttpClient</a> | ||
* in exchange for more functionality, like support for HTTP proxies. | ||
* | ||
* <p>See software.amazon.awssdk.http.urlconnection.UrlConnectionHttpClient for an alternative implementation.</p> | ||
* <p><b>Note:</b> The higher startup latency is compared to UrlConnectionHttpClient, not to the Apache HttpClient 4.5.x | ||
* based client. Performance characteristics between Apache 4.5.x and 5.x clients are similar.</p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move the "Performance characteristics..." after the list of improvements. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
* | ||
* <p>This client uses Apache HttpClient 5.x, which provides the following | ||
* improvements over the Apache HttpClient 4.5.x based client:</p> | ||
* <ul> | ||
* <li>Modern Java ecosystem compatibility including virtual thread support for Java 21</li> | ||
* <li>Active maintenance with regular security updates</li> | ||
* <li>Enhanced logging flexibility through SLF4J (replacing problematic JCL dependencies)</li> | ||
* </ul> | ||
* | ||
* <p>See | ||
* <a href="https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/http-configuration-url.html">UrlConnectionHttpClient</a> | ||
* for a lighter-weight alternative implementation.</p> | ||
* | ||
* <p>This can be created via {@link #builder()}</p> | ||
*/ | ||
|
||
@SdkPreviewApi | ||
@SdkPublicApi | ||
public final class Apache5HttpClient implements SdkHttpClient { | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this line is necessary. We already state above:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done