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.apache.commons.lang3.NotImplementedException;
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) {
    }
    
    @Deprecated
    private Object notImplemented(String method, String store, String path) {
        LOGGER.info("{} on store <{}> via path <{}>", method, store, path);
        throw new NotImplementedException(method);
    }
    
    @PUT
    @Timed
    public void putBlob(@PathParam("store") String store, @PathParam("path") String path) {
        notImplemented("PUT", store, path);
    }
    
    @GET
    @Timed
    public Object getBlob(@PathParam("store") String store, @PathParam("path") String path) {
        return notImplemented("GET", store, path);
    }
    
    @DELETE
    @Timed
    public void deleteBlob(@PathParam("store") String store, @PathParam("path") String path) {
        notImplemented("DELETE", store, path);
    }

}

@@ -41,37 +41,8 @@
 s;%0A%0A
-import javax.ws.rs.Consumes;%0A
 impo
@@ -64,16 +64,16 @@
 DELETE;%0A
+
 import j
@@ -170,72 +170,8 @@
 ram;
-%0Aimport javax.ws.rs.Produces;%0Aimport javax.ws.rs.core.MediaType;
 %0A%0Aim
@@ -225,16 +225,17 @@
 eption;%0A
+%0A
 import o
@@ -381,16 +381,16 @@
 nager;%0A%0A
+
 @Path(%22/
@@ -418,100 +418,8 @@
 %7D%22)%0A
-@Produces(MediaType.APPLICATION_OCTET_STREAM)%0A@Consumes(MediaType.APPLICATION_OCTET_STREAM)%0A
 publ

Remove Produces and Consumes annotations