public final class AmazonS3ProxyFactory extends Object
AmazonS3
handler and handle redirects wrapped inside
AmazonS3Exception
.Modifier and Type | Method and Description |
---|---|
static com.amazonaws.services.s3.AmazonS3 |
createProxy(com.amazonaws.services.s3.AmazonS3 amazonS3)
Factory-method to create a proxy using the
SimpleStorageRedirectInterceptor
that supports redirects for buckets which are in a different region. |
public static com.amazonaws.services.s3.AmazonS3 createProxy(com.amazonaws.services.s3.AmazonS3 amazonS3)
SimpleStorageRedirectInterceptor
that supports redirects for buckets which are in a different region. This proxy
uses the amazonS3 parameter as a "prototype" and re-uses the credentials from the
passed in AmazonS3
instance. Proxy implementations uses the
AmazonS3ClientFactory
to create region specific clients, which are cached
by the implementation on a region basis to avoid unnecessary object creation.amazonS3
- Fully configured AmazonS3 client, the client can be an immutable
instance (created by the AmazonS3ClientBuilder
)
as this proxy will not change the underlying implementation.SimpleStorageRedirectInterceptor
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.