package de.msquadrat.blobwizard.resources;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.codahale.metrics.annotation.Timed;

import de.msquadrat.blobwizard.BlobStoreManager;

@Path("/blob/{store}/{path:.+}")
@Produces(MediaType.APPLICATION_OCTET_STREAM)
@Consumes(MediaType.APPLICATION_OCTET_STREAM)
public class BlobResource {
    private static final Logger LOGGER = LoggerFactory.getLogger(BlobResource.class);
    
    public BlobResource(BlobStoreManager storeManager) {
    }
    
    @PUT
    @Timed
    public void putBlob(@PathParam("store") String store, @PathParam("path") String path) {
        
    }
    
    @GET
    @Timed
    public Object getBlob(@PathParam("store") String store, @PathParam("path") String path) {
        return null;
    }
    
    @DELETE
    @Timed
    public void deleteBlob(@PathParam("store") String store, @PathParam("path") String path) {
        
    }

}

@@ -261,16 +261,73 @@
 aType;%0A%0A
+import org.apache.commons.lang3.NotImplementedException;%0A
 import o
@@ -343,16 +343,16 @@
 Logger;%0A
-
 import o
@@ -781,24 +781,256 @@
 %0A    %7D%0A    %0A
+    @Deprecated%0A    private Object notImplemented(String method, String store, String path) %7B%0A        LOGGER.info(%22%7B%7D on store %3C%7B%7D%3E via path %3C%7B%7D%3E%22, method, store, path);%0A        throw new NotImplementedException(method);%0A    %7D%0A    %0A
     @PUT%0A   
@@ -1133,24 +1133,59 @@
 ) %7B%0A        
+notImplemented(%22PUT%22, store, path);
 %0A    %7D%0A    %0A
@@ -1318,11 +1318,41 @@
 rn n
-ull
+otImplemented(%22GET%22, store, path)
 ;%0A  
@@ -1478,24 +1478,24 @@
 path) %7B%0A
-
         
 %0A    %7D%0A%0A
@@ -1482,22 +1482,60 @@
 ) %7B%0A        
+notImplemented(%22DELETE%22, store, path);
 %0A    %7D%0A%0A%7D%0A

Add dummy BlobResource implementations