@Configuration
@EnableAutoConfiguration(exclude=org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
excludeName="org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration")
@ComponentScan
public class S3MockApplication
extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HTTP_PORT |
static int |
DEFAULT_HTTPS_PORT |
static String |
PROP_HTTP_PORT
Property name for passing the HTTP port to use.
|
static String |
PROP_HTTPS_PORT
Property name for passing the HTTPS port to use.
|
static String |
PROP_INITIAL_BUCKETS
Property name for passing a comma separated list of buckets that are to be created at startup.
|
static String |
PROP_ROOT_DIRECTORY
Property name for passing a root directory to use.
|
static String |
PROP_SECURE_CONNECTION
Property name for using either HTTPS or HTTP connections.
|
static String |
PROP_SILENT
Property name for enabling the silent mode with logging set at WARN and without banner.
|
static int |
RANDOM_PORT |
| Constructor and Description |
|---|
S3MockApplication() |
| Modifier and Type | Method and Description |
|---|---|
int |
getHttpPort()
Gets the Http server port.
|
int |
getPort()
Gets the Https server port.
|
static void |
main(String[] args)
Main Class that starts the server using
start(String...). |
void |
registerKMSKeyRef(String keyRef)
Registers a valid KMS key reference on the mock server.
|
static S3MockApplication |
start(Map<String,Object> properties,
String... args)
Starts the server.
|
static S3MockApplication |
start(String... args)
Starts the server.
|
void |
stop()
Stops the server.
|
public static final int DEFAULT_HTTPS_PORT
public static final int DEFAULT_HTTP_PORT
public static final int RANDOM_PORT
public static final String PROP_INITIAL_BUCKETS
public static final String PROP_ROOT_DIRECTORY
public static final String PROP_HTTPS_PORT
public static final String PROP_HTTP_PORT
public static final String PROP_SECURE_CONNECTION
public static final String PROP_SILENT
public static void main(String[] args)
start(String...).args - Default command args.public static S3MockApplication start(String... args)
args - in program args format, e.g. "--server.port=0".S3MockApplicationpublic static S3MockApplication start(Map<String,Object> properties, String... args)
properties - properties to pass to the application in key-value format.args - in program args format, e.g. "--server.port=0".S3MockApplicationpublic void stop()
public int getPort()
public int getHttpPort()
public void registerKMSKeyRef(String keyRef)
keyRef - A KMS Key ReferenceCopyright © 2019 Adobe. All rights reserved.