Need way to generate similar resource URL's from given URL
@glassfishrobot is already working on this.
Since Feb 10, 2018.
- Dominant language
- Java
- Stars
- 400
- Forks
- 143
- PR merge metrics
- No merged PRs in 30d
Description
I posted along these lines a while back, but I continue to run into cases where
I need to make modifications to a URI, and there doesn't seem to be an easy way
to do it.
For instance, if my resource has URI .../color/red/width/10/height/5, I find
myself needing to redirect the client after an "edit" operation to
.../color/BLUE/width/10/height/2.
What I really want is
UriInfo.getAbsolutePathBuilder().addOrReplaceSegment("color/$","BLUE").addOrReplaceSegment("height/$
{height}
","2");
#### Environment
Operating System: All
Platform: Macintosh
#### Affected Versions
[2.1]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.