first step towards jax-rs support, first tests passing

This commit is contained in:
Jonas Boner 2009-05-15 15:40:45 +02:00
parent b1900b0a25
commit 0243a60d01
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,5 @@
package se.scalablesolutions.akka.api;
public interface JerseyFoo {
public String foo();
}

View file

@ -0,0 +1,14 @@
package se.scalablesolutions.akka.api;
import javax.ws.rs.Path;
import javax.ws.rs.GET;
import javax.ws.rs.Produces;
@Path("/foo")
public class JerseyFooImpl implements JerseyFoo {
@GET
@Produces({"application/json"})
public String foo() {
return "hello foo";
}
}