@ -129,13 +130,16 @@ public class DefaultUriBuilderFactory implements UriBuilderFactory {
@@ -129,13 +130,16 @@ public class DefaultUriBuilderFactory implements UriBuilderFactory {
@ -116,9 +116,9 @@ Consider ";" which is legal in a path but has reserved meaning. Option 1 replace
@@ -116,9 +116,9 @@ Consider ";" which is legal in a path but has reserved meaning. Option 1 replace
replaces ";" since it is a legal character in a path.
====
For most cases option 1 is likely to give the expected result because in treats URI
For most cases option 1 is likely to give the expected result because it treats URI
variables as opaque data to be fully encoded, while option 2 is useful only if
intentionally expanding URI variables that contain reserved characters.
URI variables intentionally contain reserved characters.
Example usage using option 1:
@ -135,7 +135,7 @@ Example usage using option 1:
@@ -135,7 +135,7 @@ Example usage using option 1:
----
The `WebClient` and the `RestTemplate` expand and encode URI templates internally through
the `UriBuilderFactory` strategy. Both can be configured wiht a custom instance:
the `UriBuilderFactory` strategy. Both can be configured with a custom strategy:
[source,java,indent=0]
[subs="verbatim,quotes"]
@ -144,23 +144,29 @@ the `UriBuilderFactory` strategy. Both can be configured wiht a custom instance:
@@ -144,23 +144,29 @@ the `UriBuilderFactory` strategy. Both can be configured wiht a custom instance:
DefaultUriBuilderFactory factory = new DefaultUriBuilderFactory(baseUrl)