Class Apache5Utils
- java.lang.Object
-
- software.amazon.awssdk.http.apache5.internal.utils.Apache5Utils
-
public final class Apache5Utils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.hc.core5.http.HttpEntitynewBufferedHttpEntity(org.apache.hc.core5.http.HttpEntity entity)Utility function for creating a new BufferedEntity and wrapping any errors as a SdkClientException.static org.apache.hc.client5.http.protocol.HttpClientContextnewClientContext(ProxyConfiguration proxyConfiguration)Returns a new HttpClientContext used for request execution.static org.apache.hc.client5.http.auth.CredentialsProvidernewProxyCredentialsProvider(ProxyConfiguration proxyConfiguration)Returns a new Credentials Provider for use with proxy authentication.
-
-
-
Method Detail
-
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.
-
-