users@jersey.java.net

Ignore a certain portion of the _at_Path

From: Bruno de Carvalho <bruno.carvalho_at_wit-software.com>
Date: Mon, 2 Nov 2009 13:03:07 -0000

Hello,


I was thinking of using Jersey to write an XCAP frontend to a server. The only problem I'm facing here is the the XPath portion of the XCAP URI.

Example:
http://host/xcap-root/resource-lists/users/sip:user@domain.com/index/~~/xpath/expression

Naturally, I can get Jersey to work up until the "index" part if I use no xpath expression (which translates to "give me the whole document"). However, if I add the "/~~/" (separator that indicates that XPath expression follows) I can't get any matches -- which makes sense.

My question regarding this matter is whether there is a way to instruct jersey to ignore the @Path() from a certain point forward. I mean, I'd like to have something like:

@Path("/resource-lists/users/sip:{login}@{domain}/{document}<IGNORE_FROM_HERE>")


Best regards,
  Bruno