users@jersey.java.net

Re: [Jersey] Ignore a certain portion of the _at_Path

From: António Mota <amsmota_at_gmail.com>
Date: Mon, 02 Nov 2009 13:55:39 +0000

Use a regular expression to define the part after {document} and ignore
it...



Bruno de Carvalho wrote:
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>