@Path("/")
public class MyResource {
@Context private HttpServletRequest httpServletRequest;
...
}
env.jersey().register(new MyResource());
env.jersey().register(MyResource.class);
AFAIK you *can* still register instances. (The documentation text is a bit misleading).
The way to work around your issue is documented in Jochen’s link: Instead of defining @context fields at the class level you have to move them to the method parameters.
- Matthias
--
You received this message because you are subscribed to the Google Groups "dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dropwizard-us...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dropwizard-user/ce07832e-97e9-4a1c-a51b-71e4d789084en%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "dropwizard-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dropwizard-user/ASXuC6ZL97c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dropwizard-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dropwizard-user/79d2d5ca401b4369a011eb4f7b75f0ee%40MSX-L104.msx.ad.zih.tu-dresden.de.