users@jersey.java.net

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

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 02 Nov 2009 14:59:39 +0100

On Nov 2, 2009, at 2:55 PM, António Mota wrote:

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

See:

https://jersey.dev.java.net/nonav/documentation/1.1.2-ea/user-
guide.html#d4e31

for more details:

Paul.

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