Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional convenience methods in UriUtils
The generic encode method in UriUtils that encodes any character outside the reserved character set for a URI is meant for "strict" encoding of URI variable values. This commit adds a couple more conveninence methods that accept a Map or array of URI variable values to encode. This facilitates the use case where the URI template is assumed to be encoded while URI variables are encoded strictly to avoid any possibility for unwanted reserved characters: Map<String, ?> encodedUriVars = UriUtils.encodeUriVariables(uriVars); uriComponentsBuilder.build(true).expand(encodedUriVars).toUri(); Issue: SPR-14970
- Loading branch information
1 parent
f2e293a
commit bb3b1f2
Showing
2 changed files
with
54 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters