users@jsr311.java.net

pathParam regex

From: Manuel Innerhofer <Manuel.Innerhofer_at_trialox.org>
Date: Tue, 2 Dec 2008 16:43:36 +0100

Hi,

I'm not sure how the following cases should be handled:

@Path(value="{A:[\\w]*}{B:[\\w]*}")
What values should be assigned to the parameters with a request URI
like "abcdef":

A = "abcdef", B = "" or
A = "", B = "abcdef" or
A = "abc", B ="def"? Or something else?

or in this case:

@Path(value="{A:r[\\w]*d}{B:r[\\w]*d}")
request URI "rudridred"

A= "rud", B="ridred"
A= "rudrid", B="red"

Thanks in advance.

Cheers, Manuel