Class Apache5Utils

java.lang.Object
software.amazon.awssdk.http.apache5.internal.utils.Apache5Utils

public final class Apache5Utils extends Object
  • Method Details

    • newBufferedHttpEntity

      public static org.apache.hc.core5.http.HttpEntity newBufferedHttpEntity(org.apache.hc.core5.http.HttpEntity entity)
      Utility function for creating a new BufferedEntity and wrapping any errors as a SdkClientException.
      Parameters:
      entity - The HTTP entity to wrap with a buffered HTTP entity.
      Returns:
      A new BufferedHttpEntity wrapping the specified entity.
    • newClientContext

      public static org.apache.hc.client5.http.protocol.HttpClientContext newClientContext(ProxyConfiguration proxyConfiguration)
      Returns a new HttpClientContext used for request execution.
    • newProxyCredentialsProvider

      public static org.apache.hc.client5.http.auth.CredentialsProvider newProxyCredentialsProvider(ProxyConfiguration proxyConfiguration)
      Returns a new Credentials Provider for use with proxy authentication.