public abstract class S3MockStarter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
S3MockStarter.BaseBuilder<T extends S3MockStarter> |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
properties |
protected S3MockApplication |
s3MockFileStore |
| Modifier | Constructor and Description |
|---|---|
protected |
S3MockStarter(Map<String,Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
com.amazonaws.ClientConfiguration |
configureClientToIgnoreInvalidSslCertificates(com.amazonaws.ClientConfiguration clientConfiguration)
Adjusts the given client configuration to allow the communication with the mock server using
HTTPS, although that one uses a self-signed SSL certificate.
|
com.amazonaws.services.s3.AmazonS3 |
createS3Client()
Creates an
AmazonS3 client instance that is configured to call the started S3Mock
server using HTTPS. |
com.amazonaws.services.s3.AmazonS3 |
createS3Client(String region)
Creates an
AmazonS3 client instance that is configured to call the started S3Mock
server using HTTPS for a given region. |
software.amazon.awssdk.services.s3.S3Client |
createS3ClientV2()
Creates an
S3Client client instance that is configured to call the started S3Mock
server using HTTPS. |
protected Map<String,Object> |
defaultProps() |
protected com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration |
getEndpointCongiguration(String region) |
int |
getHttpPort() |
int |
getPort() |
protected String |
getServiceEndpoint() |
void |
registerKMSKeyRef(String keyRef)
Registers a valid KMS key reference in the mock server.
|
protected void |
start() |
protected void |
stop() |
protected S3MockApplication s3MockFileStore
public software.amazon.awssdk.services.s3.S3Client createS3ClientV2()
S3Client client instance that is configured to call the started S3Mock
server using HTTPS.S3Client instance.public com.amazonaws.services.s3.AmazonS3 createS3Client()
AmazonS3 client instance that is configured to call the started S3Mock
server using HTTPS.AmazonS3 instance.public com.amazonaws.services.s3.AmazonS3 createS3Client(String region)
AmazonS3 client instance that is configured to call the started S3Mock
server using HTTPS for a given region.region - Region to define regional endpoint.AmazonS3 instance.public int getPort()
public int getHttpPort()
public void registerKMSKeyRef(String keyRef)
keyRef - A KMS Key Referencepublic com.amazonaws.ClientConfiguration configureClientToIgnoreInvalidSslCertificates(com.amazonaws.ClientConfiguration clientConfiguration)
clientConfiguration - The ClientConfiguration to adjust.protected com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration getEndpointCongiguration(String region)
protected String getServiceEndpoint()
protected void start()
protected void stop()
Copyright © 2019 Adobe. All rights reserved.