UriComponentsBuilder should also contain subtractive methods [SPR-8803] #13445
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Kenneth DeLong opened SPR-8803 and commented
UriComponentsBuilder should have methods also to subtract and remove items from the URI. For example, I might want to take the current URL and remove the pagination parameter from the URL:
Also, I might want to change the UriPath
The advantage of this is we might want to keep the incoming request's DNS name, port, scheme, etc. This is a portable way of constructing URLs across environments (dev/qa/staging/prod).
URLs are not always used for redirecting etc. I might need to send out an email with a link to some page on the site. I could use the above functionality to construct a URL with the correct port, scheme, etc. in a simple portable fashion.
Affects: 3.1 RC1
Issue Links:
Referenced from: commits 2a39f34, d3f4c69
The text was updated successfully, but these errors were encountered: