package de.jeha.s3srv;

import de.jeha.s3srv.config.S3SrvConfiguration;
import io.dropwizard.Application;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
import org.glassfish.jersey.server.ServerProperties;

import java.util.Locale;

/**
 * @author jenshadlich@googlemail.com
 */
public class S3SrvService extends Application<S3SrvConfiguration> {

    private static final String APPLICATION_NAME = "s3srv";

    public static void main(String... args) throws Exception {
        Locale.setDefault(Locale.ENGLISH);
        new S3SrvService().run(args);
    }

    @Override
    public String getName() {
        return APPLICATION_NAME;
    }

    @Override
    public void initialize(Bootstrap<S3SrvConfiguration> bootstrap) {
        // nothing to do yet
    }

    @Override
    public void run(S3SrvConfiguration configuration, Environment environment) {
        environment.jersey().disable(ServerProperties.WADL_FEATURE_DISABLE);
    }

}

@@ -61,24 +61,238 @@
 figuration;%0A
+import de.jeha.s3srv.operations.buckets.CreateBucket;%0Aimport de.jeha.s3srv.operations.service.ListBuckets;%0Aimport de.jeha.s3srv.storage.StorageBackend;%0Aimport de.jeha.s3srv.storage.backends.InMemoryStorageBackend;%0A
 import io.dr
@@ -1093,24 +1093,227 @@
 ironment) %7B%0A
+        StorageBackend storageBackend = new InMemoryStorageBackend();%0A%0A        environment.jersey().register(new CreateBucket(storageBackend));%0A        environment.jersey().register(new ListBuckets());%0A%0A
         envi

add resources