Class S3MockApplication

  • All Implemented Interfaces:

    @SpringBootApplication()@ComponentScan(excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = {Controller.class}), @ComponentScan.Filter(type = FilterType.ANNOTATION, value = {ControllerAdvice.class}), @ComponentScan.Filter(type = FilterType.ANNOTATION, value = {RestController.class}), @ComponentScan.Filter(type = FilterType.ANNOTATION, value = {RestControllerAdvice.class})}) 
    public final class S3MockApplication
    
                        
    • Constructor Detail

      • S3MockApplication

        S3MockApplication(ConfigurableApplicationContext context, KmsKeyStore kmsKeyStore, Environment environment, Connector httpConnector)
    • Method Detail

      • getPort

        @Deprecated(message = "Using the S3Mock directly through Java is discouraged. Either run the JAR and start
                a separate JVM, or run the Docker container.") final Integer getPort()

        Gets the Https server port.

        Returns:

        Https server port.

      • getHttpPort

        @Deprecated(message = "Using the S3Mock directly through Java is discouraged. Either run the JAR and start
                a separate JVM, or run the Docker container.") final Integer getHttpPort()

        Gets the Http server port.

        Returns:

        Http server port.

      • stop

         final Unit stop()

        Stops the server.

      • registerKMSKeyRef

        @Deprecated(message = "Using the S3Mock directly through Java is discouraged. Either run the JAR and start
                a separate JVM, or run the Docker container.") final Unit registerKMSKeyRef(String keyRef)

        Registers a valid KMS key reference on the mock server.

        Parameters:
        keyRef - A KMS Key Reference
      • main

         final static Unit main(Array<String> args)

        Main Class that starts the server using .start.

        Parameters:
        args - Default command args.