Hi Gabo
You might also want to consider injecting UriInfo as a field or as a bean
property :
Ex1 :
@Context
private UriInfo ui;
Ex2.
@Context
void setUriInfo(UriInfo ui) {
}
I'm not sure the second example is totally JAX-RS compliant - I think it is as I remember seeing on either Jersey or JAXRS users
list a discussion about contexts being injected as bean properties...
Cheers, Sergey
Hi Sergey,
> @Path({filter:.*})
> public Response search(@PathParam("") SearchFilter bean) {
Thanks for pointing me in the right direction. I had changed it as follows:
@GET
@Path("/search.*")
public Accounts getList(
@Context
UriInfo uriinfo
) {
From here I'll just parse the path_info.
Again my thanks.
Gabo