I'm playing around with jax-rs , deploying on tomcat (handling via com.sun.ws.rest.spi.container.servlet.ServletContainer). It's basically
@Path("/hello")
@Produces({"text/plain"})
public class Hellohandler{
@GET
public String hello() {
return "Hello World";
}
}
Is there any way I can get hold of the ServletContext within my HelloHandler ?