Class UrlConnectionClientFactory

java.lang.Object
io.micronaut.aws.sdk.v2.client.urlConnection.UrlConnectionClientFactory

@Factory public class UrlConnectionClientFactory extends Object
Factory that creates an URLConnection based client.
Since:
2.0.0
Author:
Álvaro Sánchez-Mariscal
  • Field Details

  • Constructor Details

    • UrlConnectionClientFactory

      public UrlConnectionClientFactory()
  • Method Details

    • urlConnectionClient

      @Bean(preDestroy="close") @Singleton @Requires(missingBeans=software.amazon.awssdk.http.SdkHttpClient.class) public software.amazon.awssdk.http.SdkHttpClient urlConnectionClient(UrlConnectionClientConfiguration configuration)
      Creates an UrlConnectionHttpClient client if there are no other clients configured.
      Parameters:
      configuration - The URLConnection client configuration
      Returns:
      An instance of SdkHttpClient
    • systemPropertyClient

      @Bean(preDestroy="close") @Singleton @Requires(property="software.amazon.awssdk.http.service.impl", value="software.amazon.awssdk.http.urlconnection.UrlConnectionSdkHttpService") public software.amazon.awssdk.http.SdkHttpClient systemPropertyClient(UrlConnectionClientConfiguration configuration)
      Creates an UrlConnectionHttpClient client if the system property "software.amazon.awssdk.http.service.impl" is set to "software.amazon.awssdk.http.urlconnection.UrlConnectionSdkHttpService".
      Parameters:
      configuration - The URLConnection client configuration
      Returns:
      An instance of SdkHttpClient