Re: [Jersey] Re:Re: [Jersey] Re:Re: [Jersey] can we get a UriBuilder.addOrReplaceSegment method? Tuesday, February 2, 2010 11:51 PM Monday, February 8, 2010 3:17 AM

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 10 Feb 2010 15:08:07 +0100

On Feb 10, 2010, at 5:14 AM, geoffrey hendrey wrote:

> Hi Paul,
> Thanks for your response. I am presently using a regex to identify
> the portions of the URL I want to replace. If I don't find the match
> already in the URL then I create the path segment and append it to
> the URL. The regex needs to be a bit pickier than the one you
> provided, but thanks for providing one anyway. The regex I am using
> is ("/page/([^/#;\\?]+) because I do not want to blow away matrix
> parmeters or query parameters. I just replace the content of the
> capturing group when I find a match.


> "replace", for my needs, means replaceAll, though I think ideally
> one would have the option to replace the first, last, or all.
> I am logging the issue.


> Thanks again for your response, and for all you are doing for
> Jersey. It's really an amazing product.

Thanks for the kind words,