File tree Expand file tree Collapse file tree 4 files changed +3
-9
lines changed
http-clients/apache5-client/src
main/java/software/amazon/awssdk/http/apache5
test/java/software/amazon/awssdk/http/apache5 Expand file tree Collapse file tree 4 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 7575import org .apache .hc .core5 .ssl .SSLInitializationException ;
7676import org .apache .hc .core5 .util .TimeValue ;
7777import org .apache .hc .core5 .util .Timeout ;
78- import software .amazon .awssdk .annotations .SdkPreviewApi ;
7978import software .amazon .awssdk .annotations .SdkPublicApi ;
8079import software .amazon .awssdk .annotations .SdkTestInternalApi ;
8180import software .amazon .awssdk .http .AbortableInputStream ;
126125 * <p>This can be created via {@link #builder()}</p>
127126 */
128127
129- @ SdkPreviewApi
130128@ SdkPublicApi
131129public final class Apache5HttpClient implements SdkHttpClient {
132130
133- private static final String CLIENT_NAME = "Apache5Preview " ;
131+ private static final String CLIENT_NAME = "Apache5 " ;
134132
135133 private static final Logger log = Logger .loggerFor (Apache5HttpClient .class );
136134 private static final HostnameVerifier DEFAULT_HOSTNAME_VERIFIER = new DefaultHostnameVerifier ();
Original file line number Diff line number Diff line change 1515
1616package software .amazon .awssdk .http .apache5 ;
1717
18- import software .amazon .awssdk .annotations .SdkPreviewApi ;
1918import software .amazon .awssdk .annotations .SdkPublicApi ;
2019import software .amazon .awssdk .http .SdkHttpClient ;
2120import software .amazon .awssdk .http .SdkHttpService ;
2221
2322/**
2423 * Service binding for the Apache5 implementation.
2524 */
26- @ SdkPreviewApi
2725@ SdkPublicApi
2826public class Apache5SdkHttpService implements SdkHttpService {
2927 @ Override
Original file line number Diff line number Diff line change 2222import java .util .Collections ;
2323import java .util .HashSet ;
2424import java .util .Set ;
25- import software .amazon .awssdk .annotations .SdkPreviewApi ;
2625import software .amazon .awssdk .annotations .SdkPublicApi ;
2726import software .amazon .awssdk .utils .ProxyConfigProvider ;
2827import software .amazon .awssdk .utils .ProxySystemSetting ;
3433/**
3534 * Configuration that defines how to communicate via an HTTP or HTTPS proxy.
3635 */
37- @ SdkPreviewApi
3836@ SdkPublicApi
3937public final class ProxyConfiguration implements ToCopyableBuilder <ProxyConfiguration .Builder , ProxyConfiguration > {
4038 private final URI endpoint ;
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public void prepareRequest_callableCalled_metricsReported() throws IOException {
7676
7777 client .prepareRequest (executeRequest ).call ();
7878 MetricCollection collected = collector .collect ();
79- assertThat (collected .metricValues (HTTP_CLIENT_NAME )).containsExactly ("Apache5Preview " );
79+ assertThat (collected .metricValues (HTTP_CLIENT_NAME )).containsExactly ("Apache5 " );
8080 assertThat (collected .metricValues (LEASED_CONCURRENCY )).containsExactly (1 );
8181 assertThat (collected .metricValues (PENDING_CONCURRENCY_ACQUIRES )).containsExactly (2 );
8282 assertThat (collected .metricValues (AVAILABLE_CONCURRENCY )).containsExactly (3 );
@@ -94,7 +94,7 @@ public void prepareRequest_connectionManagerNotPooling_callableCalled_metricsRep
9494
9595 MetricCollection collected = collector .collect ();
9696
97- assertThat (collected .metricValues (HTTP_CLIENT_NAME )).containsExactly ("Apache5Preview " );
97+ assertThat (collected .metricValues (HTTP_CLIENT_NAME )).containsExactly ("Apache5 " );
9898 assertThat (collected .metricValues (LEASED_CONCURRENCY )).isEmpty ();
9999 assertThat (collected .metricValues (PENDING_CONCURRENCY_ACQUIRES )).isEmpty ();
100100 assertThat (collected .metricValues (AVAILABLE_CONCURRENCY )).isEmpty ();
You can’t perform that action at this time.
0 commit comments