Jersey - UriInfo injection at resource initialization time
UriInfo is specific to the current request (has some properties thatprovide info for the specific request). You can't inject such thing to
an instance variable of a singleton. Does not make sense.
I believe UriBuilder.fromResource(TestResource.class).build() is what
you are looking for.
Martin
Read full article from Jersey - UriInfo injection at resource initialization time
No comments:
Post a Comment