Class ApacheClientFactory

java.lang.Object
io.micronaut.aws.sdk.v2.client.apache.ApacheClientFactory

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

  • Constructor Details

    • ApacheClientFactory

      public ApacheClientFactory()
  • Method Details

    • apacheClient

      @Bean(preDestroy="close") @Singleton @Requires(property="software.amazon.awssdk.http.service.impl", notEquals="software.amazon.awssdk.http.urlconnection.UrlConnectionSdkHttpService") public software.amazon.awssdk.http.SdkHttpClient apacheClient(ApacheClientConfiguration configuration)
      Parameters:
      configuration - The Apache 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.apache.ApacheSdkHttpService") public software.amazon.awssdk.http.SdkHttpClient systemPropertyClient(ApacheClientConfiguration configuration)
      Parameters:
      configuration - The Apache client configuration
      Returns:
      An instance of SdkHttpClient