Skip to content

Commit a95f271

Browse files
committed
Baseline all the classes from Apache4 SDK client to the new Apache5 module
1 parent 6110eaa commit a95f271

File tree

47 files changed

+5841
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+5841
-11
lines changed

http-clients/apache5-client/pom.xml

+41
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,47 @@
3333
<artifactId>http-client-spi</artifactId>
3434
<version>${awsjavasdk.version}</version>
3535
</dependency>
36+
<dependency>
37+
<groupId>org.apache.httpcomponents.client5</groupId>
38+
<artifactId>httpclient5</artifactId>
39+
<version>5.4.4</version>
40+
</dependency>
41+
<dependency>
42+
<groupId>org.apache.httpcomponents.core5</groupId>
43+
<artifactId>httpcore5</artifactId>
44+
<version>5.3.4</version>
45+
</dependency>
46+
<dependency>
47+
<groupId>software.amazon.awssdk</groupId>
48+
<artifactId>http-client-tests</artifactId>
49+
<version>${awsjavasdk.version}</version>
50+
<scope>test</scope>
51+
</dependency>
52+
<dependency>
53+
<groupId>org.junit.jupiter</groupId>
54+
<artifactId>junit-jupiter</artifactId>
55+
<scope>test</scope>
56+
</dependency>
57+
<dependency>
58+
<groupId>org.junit.vintage</groupId>
59+
<artifactId>junit-vintage-engine</artifactId>
60+
<scope>test</scope>
61+
</dependency>
62+
<dependency>
63+
<groupId>org.assertj</groupId>
64+
<artifactId>assertj-core</artifactId>
65+
<scope>test</scope>
66+
</dependency>
67+
<dependency>
68+
<groupId>org.hamcrest</groupId>
69+
<artifactId>hamcrest-all</artifactId>
70+
<scope>test</scope>
71+
</dependency>
72+
<dependency>
73+
<groupId>com.github.tomakehurst</groupId>
74+
<artifactId>wiremock-jre8</artifactId>
75+
<scope>test</scope>
76+
</dependency>
3677
</dependencies>
3778

3879
<build>

http-clients/apache5-client/src/main/java/software/amazon/awssdk/http/apache5/Apache5HttpClient.java

+736-11
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
package software.amazon.awssdk.http.apache5;
17+
18+
import software.amazon.awssdk.annotations.SdkPublicApi;
19+
import software.amazon.awssdk.http.SdkHttpClient;
20+
import software.amazon.awssdk.http.SdkHttpService;
21+
22+
/**
23+
* Service binding for the Apache5 implementation.
24+
*/
25+
@SdkPublicApi
26+
public class Apache5SdkHttpService implements SdkHttpService {
27+
@Override
28+
public SdkHttpClient.Builder createHttpClientBuilder() {
29+
return Apache5HttpClient.builder();
30+
}
31+
}

0 commit comments

Comments
 (0)