public class ApacheUtils extends Object
Constructor | Description |
---|---|
ApacheUtils() |
Modifier and Type | Method | Description |
---|---|---|
static org.apache.http.HttpEntity |
newBufferedHttpEntity(org.apache.http.HttpEntity entity) |
Utility function for creating a new BufferedEntity and wrapping any errors
as a SdkClientException.
|
static org.apache.http.client.protocol.HttpClientContext |
newClientContext(ProxyConfiguration proxyConfiguration,
Map<String,?> attributes) |
Returns a new HttpClientContext used for request execution.
|
static org.apache.http.client.CredentialsProvider |
newProxyCredentialsProvider(ProxyConfiguration proxyConfiguration) |
Returns a new Credentials Provider for use with proxy authentication.
|
static org.apache.http.HttpEntity |
newStringEntity(String s) |
Utility function for creating a new StringEntity and wrapping any errors
as a SdkClientException.
|
public static org.apache.http.HttpEntity newStringEntity(String s)
s
- The string contents of the returned HTTP entity.public static org.apache.http.HttpEntity newBufferedHttpEntity(org.apache.http.HttpEntity entity)
entity
- The HTTP entity to wrap with a buffered HTTP entity.public static org.apache.http.client.protocol.HttpClientContext newClientContext(ProxyConfiguration proxyConfiguration, Map<String,?> attributes)
public static org.apache.http.client.CredentialsProvider newProxyCredentialsProvider(ProxyConfiguration proxyConfiguration)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.