package org.openfact.services.resources;

import org.jboss.logging.Logger;
import org.jboss.resteasy.annotations.cache.NoCache;
import org.jboss.resteasy.spi.HttpRequest;
import org.jboss.resteasy.spi.HttpResponse;
import org.openfact.representations.VersionRepresentation;

import javax.ejb.Stateless;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;

@Stateless
@Path("/version")
public class ServerVersionResource {

    protected static final Logger logger = Logger.getLogger(ServerVersionResource.class);

    @Context
    protected HttpRequest request;

    @Context
    protected HttpResponse response;

    @GET
    @NoCache
    @Produces(MediaType.APPLICATION_JSON)
    public VersionRepresentation getVersion() {
        return VersionRepresentation.SINGLETON;
    }

}

@@ -39,41 +39,8 @@
 s;%0A%0A
-import org.jboss.logging.Logger;%0A
 impo
@@ -92,95 +92,8 @@
 he;%0A
-import org.jboss.resteasy.spi.HttpRequest;%0Aimport org.jboss.resteasy.spi.HttpResponse;%0A
 impo
@@ -258,41 +258,8 @@
 es;%0A
-import javax.ws.rs.core.Context;%0A
 impo
@@ -319,16 +319,16 @@
 rsion%22)%0A
+
 public c
@@ -361,199 +361,8 @@
  %7B%0A%0A
-    protected static final Logger logger = Logger.getLogger(ServerVersionResource.class);%0A%0A    @Context%0A    protected HttpRequest request;%0A%0A    @Context%0A    protected HttpResponse response;%0A%0A
     

remove unnecessary resources